diff options
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))); |