1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Use QOverload::of instead of qOverload

Fixes build with MSVC

BUG: 393395
This commit is contained in:
David Rosca 2018-04-22 16:51:05 +02:00
parent 452d332cfd
commit 1290354f14
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -531,7 +531,7 @@ bool WebPage::javaScriptPrompt(const QUrl &securityOrigin, const QString &msg, c
clicked = button;
});
connect(view(), &WebView::viewportResized, widget, qOverload<const QSize &>(&QFrame::resize));
connect(view(), &WebView::viewportResized, widget, QOverload<const QSize &>::of(&QFrame::resize));
connect(ui->lineEdit, SIGNAL(returnPressed()), ui->buttonBox->button(QDialogButtonBox::Ok), SLOT(animateClick()));
QEventLoop eLoop;
@ -578,7 +578,7 @@ bool WebPage::javaScriptConfirm(const QUrl &securityOrigin, const QString &msg)
clicked = button;
});
connect(view(), &WebView::viewportResized, widget, qOverload<const QSize &>(&QFrame::resize));
connect(view(), &WebView::viewportResized, widget, QOverload<const QSize &>::of(&QFrame::resize));
QEventLoop eLoop;
m_runningLoop = &eLoop;
@ -633,7 +633,7 @@ void WebPage::javaScriptAlert(const QUrl &securityOrigin, const QString &msg)
widget->resize(view()->size());
widget->show();
connect(view(), &WebView::viewportResized, widget, qOverload<const QSize &>(&QFrame::resize));
connect(view(), &WebView::viewportResized, widget, QOverload<const QSize &>::of(&QFrame::resize));
QEventLoop eLoop;
m_runningLoop = &eLoop;