X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/38c34eeca315c7be58e65d4d3fb72aaf7b866719..cebcf8db:/src/kitemviews/kfileitemmodel.h diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index 7c4b8ec8f..5662d4fa8 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -109,6 +109,8 @@ public: bool supportsDropping(int index) const override; + bool canEnterOnHover(int index) const override; + QString roleDescription(const QByteArray &role) const override; QList> groups() const override; @@ -182,10 +184,14 @@ public: void setMimeTypeFilters(const QStringList &filters); QStringList mimeTypeFilters() const; + void setExcludeMimeTypeFilter(const QStringList &filters); + QStringList excludeMimeTypeFilter() const; + struct RoleInfo { QByteArray role; QString translation; QString group; + QString tooltip; bool requiresBaloo; bool requiresIndexer; }; @@ -198,6 +204,9 @@ public: */ static QList rolesInformation(); + /** set to true to hide application/x-trash files */ + void setShowTrashMime(bool show); + Q_SIGNALS: /** * Is emitted if the loading of a directory has been started. It is @@ -216,6 +225,11 @@ Q_SIGNALS: */ void directoryLoadingCompleted(); + /** + * Is emitted when the model is being refreshed (F5 key press) + */ + void directoryRefreshing(); + /** * Is emitted after the loading of a directory has been canceled. */ @@ -244,7 +258,7 @@ Q_SIGNALS: * Is emitted if an error message (e.g. "Unknown location") * should be shown. */ - void errorMessage(const QString &message); + void errorMessage(const QString &message, const int kioErrorCode); /** * Is emitted if a redirection from the current URL \a oldUrl @@ -450,6 +464,8 @@ private: */ bool isChildItem(int index) const; + void scheduleResortAllItems(); + /** * Is invoked by KFileItemModelRolesUpdater and results in emitting the * sortProgress signal with a percent-value of the progress. @@ -481,6 +497,7 @@ private: const RoleType roleType; const KLazyLocalizedString roleTranslation; const KLazyLocalizedString groupTranslation; + const KLazyLocalizedString tooltipTranslation; const bool requiresBaloo; const bool requiresIndexer; };