kget
dlgchecksumsearch.cpp
Go to the documentation of this file.
37 ChecksumSearchAddDlg::ChecksumSearchAddDlg(QStringListModel *modesModel, QStringListModel *typesModel, QWidget *parent, Qt::WFlags flags)
68 const ChecksumSearch::UrlChangeMode mode = static_cast<ChecksumSearch::UrlChangeMode>(ui.mode->currentIndex());
86 ChecksumDelegate::ChecksumDelegate(QStringListModel *modesModel, QStringListModel *typesModel, QObject *parent)
93 QWidget *ChecksumDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
148 void ChecksumDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
174 void ChecksumDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
192 m_model->setHeaderData(0, Qt::Horizontal, i18nc("the string that is used to modify an url", "Change string"));
193 m_model->setHeaderData(1, Qt::Horizontal, i18nc("the mode defines how the url should be changed", "Change mode"));
194 m_model->setHeaderData(2, Qt::Horizontal, i18nc("the type of the checksum e.g. md5", "Checksum type"));
210 connect(ui.treeView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(slotUpdate()));
223 connect(dialog, SIGNAL(addItem(QString,int,QString)), this, SLOT(slotAddItem(QString,int,QString)));
236 void DlgChecksumSettingsWidget::slotAddItem(const QString &change, int mode, const QString &type)
static KUrl createUrl(const KUrl &src, const QString &change, UrlChangeMode mode)
Returns a modified url according to the parameters.
Definition: checksumsearch.cpp:166
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: dlgchecksumsearch.cpp:174
static QStringList searchStrings()
Get List of the available search engines.
Definition: checksumsearchsettings.h:30
static QStringList urlChangeModes()
Returns the available mode-names.
Definition: checksumsearch.h:50
UrlChangeMode
Used to define in whiche way the url should be changed to try and find Checksums. ...
Definition: checksumsearch.h:40
static void setUrlChangeModeList(const QList< int > &v)
Set List of the available search engine URLs.
Definition: checksumsearchsettings.h:39
static QStringList supportedVerficationTypes()
Returns the supported verification types.
Definition: verifier.cpp:216
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: dlgchecksumsearch.cpp:148
Definition: dlgchecksumsearch.h:36
~DlgChecksumSettingsWidget()
Definition: dlgchecksumsearch.cpp:216
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: dlgchecksumsearch.cpp:93
static QStringList checksumTypeList()
Get List of the available search engine URLs.
Definition: checksumsearchsettings.h:68
static QList< int > urlChangeModeList()
Get List of the available search engine URLs.
Definition: checksumsearchsettings.h:49
void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition: dlgchecksumsearch.cpp:130
static void setSearchStrings(const QStringList &v)
Set List of the available search engines.
Definition: checksumsearchsettings.h:20
Definition: dlgchecksumsearch.h:88
Definition: dlgchecksumsearch.h:70
ChecksumDelegate(QObject *parent=0)
Definition: dlgchecksumsearch.cpp:79
static ChecksumSearchSettings * self()
Definition: checksumsearchsettings.cpp:17
static void setChecksumTypeList(const QStringList &v)
Set List of the available search engine URLs.
Definition: checksumsearchsettings.h:58
DlgChecksumSettingsWidget(QWidget *parent=0, const QVariantList &args=QVariantList())
Definition: dlgchecksumsearch.cpp:180
void addItem(const QString &change, int mode, const QString &type)
Emitted when the dialog gets accepted.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.