summaryrefslogtreecommitdiffstats
path: root/src/webengine/ui_delegates_manager.h
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2016-06-20 16:19:49 +0200
committerAdam Kallai <kadam@inf.u-szeged.hu>2016-07-20 08:12:28 +0000
commit4578283f988abb9d738113953ce43340f15cf1d7 (patch)
treef1206c7872ae791ea1d9403068793e44d686511f /src/webengine/ui_delegates_manager.h
parent59c603b801b37ced083698bec813c1dbaf2c58e8 (diff)
Add ToolTip support for Qt WebEngine (QML)
[ChangeLog][QtWebEngineQML][QQuickWebEngineView] ToolTip (HTML global title attribute) are now handled. Task-numner: QTBUG-54108 Change-Id: I78cc3c1e934a822d6399ebd35c8c7895fbdf5749 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/webengine/ui_delegates_manager.h')
-rw-r--r--src/webengine/ui_delegates_manager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/webengine/ui_delegates_manager.h b/src/webengine/ui_delegates_manager.h
index b63aa91f1..43d1e6985 100644
--- a/src/webengine/ui_delegates_manager.h
+++ b/src/webengine/ui_delegates_manager.h
@@ -59,7 +59,8 @@
F(PromptDialog, promptDialog) SEPARATOR \
F(FilePicker, filePicker) SEPARATOR \
F(MessageBubble, messageBubble) SEPARATOR \
- F(AuthenticationDialog, authenticationDialog) SEPARATOR
+ F(AuthenticationDialog, authenticationDialog) SEPARATOR \
+ F(ToolTip, toolTip) SEPARATOR \
#define COMMA_SEPARATOR ,
#define SEMICOLON_SEPARATOR ;
@@ -115,12 +116,14 @@ public:
void showMessageBubble(const QRect &anchor, const QString &mainText, const QString &subText);
void hideMessageBubble();
void moveMessageBubble(const QRect &anchor);
+ void showToolTip(const QString &text);
private:
bool ensureComponentLoaded(ComponentType);
QQuickWebEngineView *m_view;
QScopedPointer<QQuickItem> m_messageBubbleItem;
+ QScopedPointer<QObject> m_toolTip;
FOR_EACH_COMPONENT_TYPE(MEMBER_DECLARATION, SEMICOLON_SEPARATOR)