diff options
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 |
