diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2014-05-15 05:45:47 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-15 18:41:20 +0200 |
commit | fc6f378dd73f0bb6cff8f6d7400bfaf572f7e341 (patch) | |
tree | fe22c3bf9963c9314dc566a355772828c259a959 /examples | |
parent | 5c99742a0e66c5bdae719f6c8ccba80cf7cc1118 (diff) |
Add linkHovered support for Widgets API
Drop hovered title and link text parameters, as we did
in the Quick API.
Change-Id: Ia1a38e0d728afbcbb6858a890486772da74aa813
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/webenginewidgets/browser/tabwidget.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/webenginewidgets/browser/tabwidget.cpp b/examples/webenginewidgets/browser/tabwidget.cpp index af18b5a37..efc7c438f 100644 --- a/examples/webenginewidgets/browser/tabwidget.cpp +++ b/examples/webenginewidgets/browser/tabwidget.cpp @@ -310,10 +310,8 @@ void TabWidget::currentChanged(int index) disconnect(oldWebView, SIGNAL(statusBarMessage(QString)), this, SIGNAL(showStatusBarMessage(QString))); #endif -#if defined(QWEBENGINEVIEW_LINKHOVERED) - disconnect(oldWebView->page(), SIGNAL(linkHovered(QString,QString,QString)), + disconnect(oldWebView->page(), SIGNAL(linkHovered(QString)), this, SIGNAL(linkHovered(QString))); -#endif disconnect(oldWebView, SIGNAL(loadProgress(int)), this, SIGNAL(loadProgress(int))); } @@ -322,10 +320,8 @@ void TabWidget::currentChanged(int index) connect(webView, SIGNAL(statusBarMessage(QString)), this, SIGNAL(showStatusBarMessage(QString))); #endif -#if defined(QWEBENGINEVIEW_LINKHOVERED) - connect(webView->page(), SIGNAL(linkHovered(QString,QString,QString)), + connect(webView->page(), SIGNAL(linkHovered(QString)), this, SIGNAL(linkHovered(QString))); -#endif connect(webView, SIGNAL(loadProgress(int)), this, SIGNAL(loadProgress(int))); |