kget
urlwidget.cpp
Go to the documentation of this file.
48 connect(ui.used_mirrors->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(slotUrlClicked()));
51 connect(m_mirrorModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SIGNAL(urlsChanged()));
Definition: mirrormodel.h:69
QUrl toUrl() const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
virtual void setSourceModel(QAbstractItemModel *sourceModel)
bool removeRow(int row, const QModelIndex &parent)
void urlsChanged()
Definition: metalinker.h:156
Definition: mirrormodel.h:68
Definition: mirrormodel.h:31
void addMirror(const KUrl &url, int numConnections=0, int priority=0, const QString &countryCode=QString())
Definition: mirrormodel.cpp:456
Definition: mirrormodel.h:88
uint priority
the priority of the urls, 1 is highest priority, 999999 lowest default is 0 as in not set and thus is...
Definition: metalinker.h:180
int toInt(bool *ok) const
Definition: mirrormodel.h:49
Definition: mirrormodel.h:70
Definition: mirrormodel.h:67
int row() const
void showItem(MirrorItem::DataType type, bool show)
Shows or hides elements, by default all (expect MirrorItem::Used) are shown.
Definition: mirrorsettings.cpp:72
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: mirrormodel.cpp:436
int rowCount(const QModelIndex &index=QModelIndex()) const
Definition: mirrormodel.cpp:359
Definition: mirrorsettings.h:32
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
QVariant data(int role) const
void init(KGetMetalink::Resources *resources, QSortFilterProxyModel *countrySort)
Definition: urlwidget.cpp:66
Definition: metalinker.h:190
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: mirrormodel.h:71
QString toString() const
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.