kget
filedlg.cpp
Go to the documentation of this file.
33 FileDlg::FileDlg(KGetMetalink::File *file, const QStringList ¤tFileNames, QSortFilterProxyModel *countrySort, QSortFilterProxyModel *languageSort, QWidget *parent, bool edit)
105 connect(m_verificationModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(slotUpdateVerificationButtons()));
106 connect(m_verificationModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(slotUpdateVerificationButtons()));
107 connect(ui.used_hashes, SIGNAL(clicked(QModelIndex)), this, SLOT(slotUpdateVerificationButtons()));
163 QList<KGetMetalink::Metaurl> metaurls = m_file->resources.metaurls;//TODO remove once metaurls are also shown
164 QList<KGetMetalink::Pieces> pieces = m_file->verification.pieces;//TODO remove once the partial hashes are also shown
174 m_file->data.oses = uiData.os->text().split(i18nc("comma, to seperate members of a list", ","));
179 m_file->data.languages << uiData.language->itemData(uiData.language->currentIndex()).toString();
188 const QString hash = m_verificationModel->index(i, VerificationModel::Checksum).data().toString();
const Key key(const T &value) const
FileDlg(KGetMetalink::File *file, const QStringList ¤tFileNames, QSortFilterProxyModel *countrySort, QSortFilterProxyModel *languageSort, QWidget *parent, bool edit=false)
Definition: filedlg.cpp:33
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: verificationdelegate.h:27
virtual void setSourceModel(QAbstractItemModel *sourceModel)
bool removeRow(int row, const QModelIndex &parent)
Definition: urlwidget.h:36
void fileEdited(const QString &oldFileName, const QString &newFileName)
QString join(const QString &separator) const
Definition: verificationdialog.h:34
Definition: metalinker.h:239
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: verificationmodel.cpp:130
QString number(int n, int base)
int count(const T &value) const
const_iterator constEnd() const
bool isEmpty() const
int removeAll(const T &value)
int row() const
void addFile()
T & first()
Subclass to make sure that the size of the dialog is automatically stored and restored.
Definition: basedialog.h:32
const T value(const Key &key) const
const_iterator constBegin() const
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
char * toString(const T &value)
QVariant data(int role) const
Definition: verificationmodel.h:29
void init(KGetMetalink::Resources *resources, QSortFilterProxyModel *countrySort)
Definition: urlwidget.cpp:66
int indexOf(const QRegExp &rx, int from) const
void addChecksum(const QString &type, const QString &checksum, int verified=0)
Add a checksum that is later used in the verification process.
Definition: verificationmodel.cpp:179
QString toString() const
Definition: verificationmodel.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.