Commit 0d179cdd authored by Joerg Bornemann's avatar Joerg Bornemann Committed by Jani Heikkinen
Browse files

demobrowser: Fix meta object system warning


Do not redefine QWebEngineView::iconChanged.
This fixes the following warning:
QMetaObject::indexOfSignal: signal iconChanged(QIcon) from
QWebEngineView redefined in WebView

Change-Id: I2489bfcf9379200f9bfa24345b56679f138894fe
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
Showing with 1 addition and 3 deletions
......@@ -349,6 +349,7 @@ void WebView::setPage(WebPage *_page)
connect(page(), SIGNAL(statusBarMessage(QString)),
SLOT(setStatusBarText(QString)));
#endif
disconnect(page(), &QWebEnginePage::iconChanged, this, &WebView::iconChanged);
connect(page(), SIGNAL(iconChanged(QIcon)),
this, SLOT(onIconChanged(QIcon)));
connect(page(), &WebPage::featurePermissionRequested, this, &WebView::onFeaturePermissionRequested);
......
......@@ -111,9 +111,6 @@ protected:
void contextMenuEvent(QContextMenuEvent *event);
void wheelEvent(QWheelEvent *event);
signals:
void iconChanged(const QIcon &icon);
private slots:
void setProgress(int progress);
void loadFinished(bool success);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment