Changeset View
Changeset View
Standalone View
Standalone View
app/ToolTips/tooltipmanager.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | public Q_SLOTS: | 51 | public Q_SLOTS: | ||
52 | /** | 52 | /** | ||
53 | * Hides the currently shown tooltip. Invoking this method is | 53 | * Hides the currently shown tooltip. Invoking this method is | ||
54 | * only needed when the tooltip should be hidden although | 54 | * only needed when the tooltip should be hidden although | ||
55 | * an item is hovered. | 55 | * an item is hovered. | ||
56 | */ | 56 | */ | ||
57 | void hideToolTip(); | 57 | void hideToolTip(); | ||
58 | 58 | | |||
59 | protected: | | |||
60 | /** | | |||
61 | * Please see the Qt documentation for more details. | | |||
62 | * | | |||
63 | * @param watched The object that was being watched. | | |||
64 | * @param event The event object. | | |||
65 | * @returns true if the event was handled in this filter, or false if it was not. | | |||
66 | */ | | |||
67 | virtual bool eventFilter( QObject* watched, QEvent* event ); | | |||
68 | | ||||
69 | private Q_SLOTS: | 59 | private Q_SLOTS: | ||
70 | void prepareToolTip(); | 60 | void prepareToolTip(); | ||
71 | void requestToolTip(const QModelIndex& index); | 61 | void requestToolTip(const QModelIndex& index); | ||
72 | 62 | | |||
73 | private: | 63 | private: | ||
74 | void showToolTip( QModelIndex menuItem ); | 64 | void showToolTip( QModelIndex menuItem ); | ||
75 | QWidget * createTipContent( QModelIndex item ); | 65 | QWidget * createTipContent( QModelIndex item ); | ||
76 | QLayout * generateToolTipLine( QModelIndex * item, QWidget * toolTip, QSize iconSize, bool comment ); | 66 | QLayout * generateToolTipLine( QModelIndex * item, QWidget * toolTip, QSize iconSize, bool comment ); | ||
77 | 67 | | |||
78 | class Private; | 68 | class Private; | ||
79 | ToolTipManager::Private* d; | 69 | ToolTipManager::Private* d; | ||
80 | }; | 70 | }; | ||
81 | 71 | | |||
82 | #endif | 72 | #endif |