summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2014-05-15 05:45:47 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-15 18:41:20 +0200
commitfc6f378dd73f0bb6cff8f6d7400bfaf572f7e341 (patch)
treefe22c3bf9963c9314dc566a355772828c259a959 /examples
parent5c99742a0e66c5bdae719f6c8ccba80cf7cc1118 (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.cpp8
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)));