diff options
| author | Nate Graham <[email protected]> | 2020-11-10 10:39:15 -0700 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2020-11-10 10:39:15 -0700 |
| commit | 8276f1e46e3af9c3499ff121ac603cc6cb9032ff (patch) | |
| tree | ee96621ffb8c7aa669dffbd4f198c9de4a3d159a /src/panels/places/placespanel.h | |
| parent | 6719072837f30c1822768da65e6ea222e987e32f (diff) | |
| parent | 6b1524e4ff115f9cbee93c3c14c09fb347885d56 (diff) | |
Merge branch 'release/20.12'
Diffstat (limited to 'src/panels/places/placespanel.h')
| -rw-r--r-- | src/panels/places/placespanel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h index 38bfa4c53..fe4f46ba6 100644 --- a/src/panels/places/placespanel.h +++ b/src/panels/places/placespanel.h @@ -11,6 +11,7 @@ #include "panels/panel.h" #include <QUrl> +#include <QTimer> class KItemListController; class PlacesItemModel; @@ -30,6 +31,8 @@ public: ~PlacesPanel() override; void proceedWithTearDown(); + bool eventFilter(QObject *obj, QEvent *event) override; + signals: void placeActivated(const QUrl& url); void placeMiddleClicked(const QUrl& url); @@ -58,6 +61,7 @@ private slots: void slotAboveItemDropEvent(int index, QGraphicsSceneDragDropEvent* event); void slotUrlsDropped(const QUrl& dest, QDropEvent* event, QWidget* parent); void slotStorageSetupDone(int index, bool success); + void slotShowTooltip(); private: void addEntry(); @@ -84,6 +88,9 @@ private: int m_itemDropEventIndex; QMimeData* m_itemDropEventMimeData; QDropEvent* m_itemDropEvent; + QTimer m_tooltipTimer; + int m_hoveredIndex; + QPoint m_hoverPos; }; #endif // PLACESPANEL_H |
