krdc
remotedesktopsmodel.cpp
Go to the documentation of this file.
78 if (index.isValid() && role == Qt::CheckStateRole && index.column() == RemoteDesktopsModel::Favorite) {
140 return i18nc("Remove the selected url from the bookarks menu", "Remove the bookmark for %1.", item.title);
146 return KGlobal::locale()->formatDateTime(item.lastConnected.toLocalZone(), KLocale::FancyLongDate);
163 return QUrl::fromPercentEncoding(QString(item.url + item.title).toUtf8()); // return both user visible title and url data, percent encoded
181 return i18nc("Header of the connections list, title/url for remote connection", "Remote Desktop");
183 return i18nc("Header of the connections list, the last time this connection was initiated", "Last Connected");
185 return i18nc("Header of the connections list, the number of times this connection has been visited", "Visits");
187 return i18nc("Header of the connections list, the time when this entry was created", "Created");
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: remotedesktopsmodel.cpp:173
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
const T & at(int i) const
~RemoteDesktopsModel()
Definition: remotedesktopsmodel.cpp:52
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: remotedesktopsmodel.cpp:56
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: remotedesktopsmodel.cpp:66
Definition: remotedesktopsmodel.h:40
int size() const
int indexOf(const T &value, int from) const
void reset()
bool isValid() const
Definition: remotedesktopsmodel.h:40
void append(const T &value)
uint toUInt(bool *ok) const
int row() const
QString fromPercentEncoding(const QByteArray &input)
bool contains(const T &value) const
Definition: remotedesktopsmodel.h:40
QVariant data(const QModelIndex &index, int role) const
Definition: remotedesktopsmodel.cpp:95
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: remotedesktopsmodel.cpp:61
static void removeByUrl(KBookmarkManager *manager, const QString &url, bool ignoreHistory=false, const QString updateTitle=QString())
Definition: bookmarkmanager.cpp:189
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: remotedesktopsmodel.cpp:76
int column() const
Definition: remotedesktopsmodel.h:40
RemoteDesktopsModel(QObject *parent)
Definition: remotedesktopsmodel.cpp:32
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
typedef ItemFlags
Definition: remotedesktopsmodel.h:38
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:34 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:29:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.