Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/core/tooltip.h
Context not available. | |||||
101 | * Returns whether the mouse is inside the item | 101 | * Returns whether the mouse is inside the item | ||
---|---|---|---|---|---|
102 | */ | 102 | */ | ||
103 | Q_PROPERTY(bool containsMouse READ containsMouse NOTIFY containsMouseChanged) | 103 | Q_PROPERTY(bool containsMouse READ containsMouse NOTIFY containsMouseChanged) | ||
104 | | ||||
105 | /** | ||||
106 | * Returns whether the mouse is inside the tool tip window | ||||
107 | */ | ||||
108 | Q_PROPERTY(bool toolTipWindowContainsMouse READ toolTipWindowContainsMouse NOTIFY toolTipWindowContainsMouseChanged) | ||||
104 | 109 | | |||
105 | /** | 110 | /** | ||
106 | * Plasma Location of the dialog window. Useful if this dialog is a popup for a panel | 111 | * Plasma Location of the dialog window. Useful if this dialog is a popup for a panel | ||
Context not available. | |||||
120 | Q_PROPERTY(bool active MEMBER m_active WRITE setActive NOTIFY activeChanged) | 125 | Q_PROPERTY(bool active MEMBER m_active WRITE setActive NOTIFY activeChanged) | ||
121 | 126 | | |||
122 | /** | 127 | /** | ||
128 | * Property that controls if a tooltips will show automatically or if they are shown/hidden manually. | ||||
129 | * The default is true. | ||||
130 | */ | ||||
131 | Q_PROPERTY(bool autoShowHide MEMBER m_autoShowHide WRITE setAutoShowHide NOTIFY autoShowHideChanged) | ||||
132 | | ||||
133 | /** | ||||
123 | * if interactive is false (default), the tooltip will automatically hide | 134 | * if interactive is false (default), the tooltip will automatically hide | ||
124 | * itself as soon as the mouse leaves the tooltiparea, if is true, if the mouse leaves tooltiparea and goes over the tooltip itself, the tooltip won't hide, so it will be possible to interact with tooltip contents | 135 | * itself as soon as the mouse leaves the tooltiparea, if is true, if the mouse leaves tooltiparea and goes over the tooltip itself, the tooltip won't hide, so it will be possible to interact with tooltip contents | ||
125 | */ | 136 | */ | ||
Context not available. | |||||
133 | QQuickItem *mainItem() const; | 144 | QQuickItem *mainItem() const; | ||
134 | void setMainItem(QQuickItem *mainItem); | 145 | void setMainItem(QQuickItem *mainItem); | ||
135 | 146 | | |||
136 | void showToolTip(); | 147 | Q_INVOKABLE void showToolTip(); | ||
137 | 148 | | |||
138 | QString mainText() const; | 149 | QString mainText() const; | ||
139 | void setMainText(const QString &mainText); | 150 | void setMainText(const QString &mainText); | ||
Context not available. | |||||
155 | 166 | | |||
156 | bool containsMouse() const; | 167 | bool containsMouse() const; | ||
157 | void setContainsMouse(bool contains); | 168 | void setContainsMouse(bool contains); | ||
169 | | ||||
170 | bool toolTipWindowContainsMouse() const; | ||||
158 | 171 | | |||
159 | void setActive(bool active); | 172 | void setActive(bool active); | ||
173 | | ||||
174 | void setAutoShowHide(bool autoShowHide); | ||||
160 | 175 | | |||
161 | void setInteractive(bool interactive); | 176 | void setInteractive(bool interactive); | ||
162 | /// @endcond | 177 | /// @endcond | ||
Context not available. | |||||
185 | void iconChanged(); | 200 | void iconChanged(); | ||
186 | void imageChanged(); | 201 | void imageChanged(); | ||
187 | void containsMouseChanged(); | 202 | void containsMouseChanged(); | ||
203 | void toolTipWindowContainsMouseChanged(); | ||||
188 | void locationChanged(); | 204 | void locationChanged(); | ||
189 | void activeChanged(); | 205 | void activeChanged(); | ||
206 | void autoShowHideChanged(); | ||||
190 | void interactiveChanged(); | 207 | void interactiveChanged(); | ||
191 | 208 | | |||
192 | private Q_SLOTS: | 209 | private Q_SLOTS: | ||
193 | void settingsChanged(); | 210 | void settingsChanged(); | ||
211 | void toolTipWindowContainsMouseChangedSlot(); | ||||
194 | 212 | | |||
195 | private: | 213 | private: | ||
196 | bool isValid() const; | 214 | bool isValid() const; | ||
Context not available. | |||||
198 | void loadSettings(); | 216 | void loadSettings(); | ||
199 | bool m_tooltipsEnabledGlobally; | 217 | bool m_tooltipsEnabledGlobally; | ||
200 | bool m_containsMouse; | 218 | bool m_containsMouse; | ||
219 | bool m_toolTipWindowContainsMouse; | ||||
201 | Plasma::Types::Location m_location; | 220 | Plasma::Types::Location m_location; | ||
202 | QWeakPointer<QQuickItem> m_mainItem; | 221 | QWeakPointer<QQuickItem> m_mainItem; | ||
203 | QTimer *m_showTimer; | 222 | QTimer *m_showTimer; | ||
Context not available. | |||||
207 | QVariant m_image; | 226 | QVariant m_image; | ||
208 | QVariant m_icon; | 227 | QVariant m_icon; | ||
209 | bool m_active; | 228 | bool m_active; | ||
229 | bool m_autoShowHide; | ||||
210 | bool m_interactive; | 230 | bool m_interactive; | ||
211 | int m_interval; | 231 | int m_interval; | ||
212 | 232 | | |||
Context not available. |