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
~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
Definition: remotedesktopsmodel.h:40
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
Definition: remotedesktopsmodel.h:40
RemoteDesktopsModel(QObject *parent)
Definition: remotedesktopsmodel.cpp:32
Definition: remotedesktopsmodel.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:04 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:54:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.