KIO
kfileplacesmodel.h
39 Q_PROPERTY(QStringList supportedSchemes READ supportedSchemes WRITE setSupportedSchemes NOTIFY supportedSchemesChanged)
46 UrlRole = 0x069CD12B,
49 HiddenRole = 0x0741CAAC,
52 SetupNeededRole = 0x059A935D,
58 FixedDeviceRole = 0x332896C1,
64 CapacityBarRecommendedRole = 0x1548C5C4,
70 GroupRole = 0x0a5b64ee,
77 IconNameRole = 0x00a45c00,
83 GroupHiddenRole = 0x21a4b936,
89 TeardownAllowedRole = 0x02533364,
94 EjectAllowedRole = 0x0A16AC5B,
101 TeardownOverlayRecommendedRole = 0x032EDCCE,
108 DeviceAccessibilityRole = 0x023FFD93,
133 * @param alternativeApplicationName This value will be used to filter bookmarks in addition to the actual application name
182 Q_INVOKABLE KFilePlacesModel::DeviceAccessibility deviceAccessibility(const QModelIndex &index) const;
218 * @return The solid device of the place at index @p index, if it is a device. Otherwise a default Solid::Device() instance is returned.
231 * If the bookmark corresponding to searchUrl is not found, a default KBookmark instance is returned.
250 * @return A QAction with a proper translated label that can be used to trigger the requestTeardown()
257 * @return A QAction with a proper translated label that can be used to trigger the requestEject()
264 * Unmounts the place at index @p index by triggering the teardown functionality of its Solid device.
286 * @param appName If set as the value of QCoreApplication::applicationName(), will make the place visible only in this application.
288 Q_INVOKABLE void addPlace(const QString &text, const QUrl &url, const QString &iconName = QString(), const QString &appName = QString());
295 * @param appName If set as the value of QCoreApplication::applicationName(), will make the place visible only in this application.
298 Q_INVOKABLE void addPlace(const QString &text, const QUrl &url, const QString &iconName, const QString &appName, const QModelIndex &after);
308 editPlace(const QModelIndex &index, const QString &text, const QUrl &url, const QString &iconName = QString(), const QString &appName = QString());
316 * Changes the visibility of the place with index @p index, but only if the place is not inside an hidden group.
357 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
398 bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
Q_PROPERTY(...)
Q_ENUM(...)
virtual int rowCount(const QModelIndex &parent) const const=0
virtual QStringList mimeTypes() const const
virtual QVariant data(const QModelIndex &index, int role) const const=0
virtual Qt::DropActions supportedDropActions() const const
KCALUTILS_EXPORT QString errorMessage(const KCalendarCore::Exception &exception)
virtual QHash< int, QByteArray > roleNames() const const
typedef ItemFlags
virtual int columnCount(const QModelIndex &parent) const const=0
virtual Qt::ItemFlags flags(const QModelIndex &index) const const
Q_SIGNALSQ_SIGNALS
typedef DropActions
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
virtual QMimeData * mimeData(const QModelIndexList &indexes) const const
Definition: kfileplacesmodel.h:35
QObject * parent() const const
QString message
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:50:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:50:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.