diff options
| author | David Lerch <[email protected]> | 2021-01-30 12:11:22 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2021-07-04 10:24:07 +0000 |
| commit | aba4462e0238d6075e8822d56a78372eacfa7d2e (patch) | |
| tree | 1b735f8959036ff66568ad209416d3b1362bff7f /src/kitemviews/kfileitemlistview.h | |
| parent | 8048e6ed1bee096fb82fa2335d533779c89c809a (diff) | |
Add support for hover sequence thumbnails (via ThumbSequenceCreator)
This shows a slideshow of thumbs when the user hovers a file item.
Diffstat (limited to 'src/kitemviews/kfileitemlistview.h')
| -rw-r--r-- | src/kitemviews/kfileitemlistview.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemlistview.h b/src/kitemviews/kfileitemlistview.h index 8ef524a2d..bfbe85d12 100644 --- a/src/kitemviews/kfileitemlistview.h +++ b/src/kitemviews/kfileitemlistview.h @@ -10,6 +10,8 @@ #include "dolphin_export.h" #include "kitemviews/kstandarditemlistview.h" +#include <KFileItem> + class KFileItemModelRolesUpdater; class QTimer; @@ -78,6 +80,16 @@ public: QPixmap createDragPixmap(const KItemSet& indexes) const override; + /** + * Notifies the view of a change in the hover state on an item. + * + * @param itemUrl URL of the item that is hovered, or an empty URL if no item is hovered. + * @param seqIdx The current hover sequence index. While an item is hovered, + * this method will be called repeatedly with increasing values + * for this parameter. + */ + void setHoverSequenceState(const QUrl& itemUrl, int seqIdx); + protected: KItemListWidgetCreatorBase* defaultWidgetCreator() const override; void initializeItemListWidget(KItemListWidget* item) override; |
