KFile
kfileplacesmodel.h
Go to the documentation of this file.
45 UrlRole = 0x069CD12B,
46 HiddenRole = 0x0741CAAC,
47 SetupNeededRole = 0x059A935D,
48 FixedDeviceRole = 0x332896C1,
50 };
70 void addPlace(const QString &text, const KUrl &url, const QString &iconName = QString(), const QString &appName = QString());
71 void addPlace(const QString &text, const KUrl &url, const QString &iconName, const QString &appName, const QModelIndex &after);
72 void editPlace(const QModelIndex &index, const QString &text, const KUrl &url, const QString &iconName = QString(), const QString &appName = QString());
148 friend class Private;
bool isDevice(const QModelIndex &index) const
bool isHidden(const QModelIndex &index) const
void requestSetup(const QModelIndex &index)
bool setupNeeded(const QModelIndex &index) const
void removePlace(const QModelIndex &index) const
QVariant data(const QModelIndex &index, int role) const
Get a visible data based on Qt role for the given index.
Solid::Device deviceForIndex(const QModelIndex &index) const
void addPlace(const QString &text, const KUrl &url, const QString &iconName, const QString &appName, const QModelIndex &after)
QModelIndex parent(const QModelIndex &child) const
Get the parent QModelIndex for the given model child.
int rowCount(const QModelIndex &parent=QModelIndex()) const
Get the number of rows for a model index.
QAction * ejectActionForIndex(const QModelIndex &index) const
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
KBookmark bookmarkForIndex(const QModelIndex &index) const
void requestTeardown(const QModelIndex &index)
int hiddenCount() const
KIcon icon(const QModelIndex &index) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
Get the number of columns for a model index.
QAction * teardownActionForIndex(const QModelIndex &index) const
QModelIndex closestItem(const KUrl &url) const
Returns the closest item for the URL url.
QMimeData * mimeData(const QModelIndexList &indexes) const
Qt::ItemFlags flags(const QModelIndex &index) const
void addPlace(const QString &text, const KUrl &url, const QString &iconName=QString(), const QString &appName=QString())
void editPlace(const QModelIndex &index, const QString &text, const KUrl &url, const QString &iconName=QString(), const QString &appName=QString())
QStringList mimeTypes() const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Get the children model index for the given row and column.
void setupDone(const QModelIndex &index, bool success)
Qt::DropActions supportedDropActions() const
KUrl url(const QModelIndex &index) const
QString text(const QModelIndex &index) const
~KFilePlacesModel()
void requestEject(const QModelIndex &index)
void errorMessage(const QString &message)
void setPlaceHidden(const QModelIndex &index, bool hidden)
ErrorType
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.