Changeset View
Changeset View
Standalone View
Standalone View
sidebar/ToolTips/tooltipmanager.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
43 | 43 | | |||
44 | /** | 44 | /** | ||
45 | * Standard constructor. The ToolTipManager will start handling ToolTip events on the provided | 45 | * Standard constructor. The ToolTipManager will start handling ToolTip events on the provided | ||
46 | * view immediately. | 46 | * view immediately. | ||
47 | * | 47 | * | ||
48 | * @param parent The view which will have the tooltips displayed for. | 48 | * @param parent The view which will have the tooltips displayed for. | ||
49 | * @param toolTipPosition The position of the tooltip. | 49 | * @param toolTipPosition The position of the tooltip. | ||
50 | */ | 50 | */ | ||
51 | explicit ToolTipManager(QAbstractItemModel *model, QWidget* parent, ToolTipManager::ToolTipPosition toolTipPosition); | 51 | explicit ToolTipManager(const QAbstractItemModel *model, QWidget* parent, ToolTipManager::ToolTipPosition toolTipPosition); | ||
52 | ~ToolTipManager() override; | 52 | ~ToolTipManager() override; | ||
53 | 53 | | |||
54 | void setModel(const QAbstractItemModel *model); | ||||
55 | const QAbstractItemModel *model() const; | ||||
56 | | ||||
54 | public Q_SLOTS: | 57 | public Q_SLOTS: | ||
55 | /** | 58 | /** | ||
56 | * Hides the currently shown tooltip. Invoking this method is | 59 | * Hides the currently shown tooltip. Invoking this method is | ||
57 | * only needed when the tooltip should be hidden although | 60 | * only needed when the tooltip should be hidden although | ||
58 | * an item is hovered. | 61 | * an item is hovered. | ||
59 | */ | 62 | */ | ||
60 | void hideToolTip(); | 63 | void hideToolTip(); | ||
61 | void requestToolTip(const QModelIndex& index, const QRect &rect); | 64 | void requestToolTip(const QModelIndex& index, const QRect &rect); | ||
Show All 17 Lines |