Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

webkitpart: add missing "emit"s

parent 6a024431
......@@ -813,7 +813,7 @@ bool NewWindowPage::acceptNavigationRequest(const QUrl &url, NavigationType type
KParts::WindowArgs wargs (m_windowArgs);
KParts::ReadOnlyPart* newWindowPart =nullptr;
part()->browserExtension()->createNewWindow(QUrl(), uargs, bargs, wargs, &newWindowPart);
emit part()->browserExtension()->createNewWindow(QUrl(), uargs, bargs, wargs, &newWindowPart);
qCDebug(WEBENGINEPART_LOG) << "Created new window" << newWindowPart;
if (!newWindowPart) {
......@@ -909,7 +909,7 @@ void NewWindowPage::slotLoadFinished(bool ok)
KParts::WindowArgs wargs (m_windowArgs);
KParts::ReadOnlyPart* newWindowPart =nullptr;
part()->browserExtension()->createNewWindow(QUrl(), uargs, bargs, wargs, &newWindowPart);
emit part()->browserExtension()->createNewWindow(QUrl(), uargs, bargs, wargs, &newWindowPart);
qCDebug(WEBENGINEPART_LOG) << "Created new window or tab" << newWindowPart;
......
......@@ -323,7 +323,7 @@ void WebEnginePart::connectWebEnginePageSignals(WebEnginePage* page)
connect(page, &QWebEnginePage::iconUrlChanged, [page, this](const QUrl& url) {
if (WebEngineSettings::self()->favIconsEnabled()
&& !page->profile()->isOffTheRecord()){
m_browserExtension->setIconUrl(url);
emit m_browserExtension->setIconUrl(url);
}
});
}
......
......@@ -77,10 +77,10 @@ WebEngineBrowserExtension::WebEngineBrowserExtension(WebEnginePart *parent, cons
m_part(parent),
mCurrentPrinter(nullptr)
{
enableAction("cut", false);
enableAction("copy", false);
enableAction("paste", false);
enableAction("print", true);
emit enableAction("cut", false);
emit enableAction("copy", false);
emit enableAction("paste", false);
emit enableAction("print", true);
if (cachedHistoryData.isEmpty()) {
return;
......@@ -278,16 +278,16 @@ void WebEngineBrowserExtension::updateEditActions()
if (!view())
return;
enableAction("cut", view()->pageAction(QWebEnginePage::Cut)->isEnabled());
enableAction("copy", view()->pageAction(QWebEnginePage::Copy)->isEnabled());
enableAction("paste", view()->pageAction(QWebEnginePage::Paste)->isEnabled());
emit enableAction("cut", view()->pageAction(QWebEnginePage::Cut)->isEnabled());
emit enableAction("copy", view()->pageAction(QWebEnginePage::Copy)->isEnabled());
emit enableAction("paste", view()->pageAction(QWebEnginePage::Paste)->isEnabled());
}
void WebEngineBrowserExtension::updateActions()
{
const QString protocol (m_part->url().scheme());
const bool isValidDocument = (protocol != QL1S("about") && protocol != QL1S("error"));
enableAction("print", isValidDocument);
emit enableAction("print", isValidDocument);
}
void WebEngineBrowserExtension::searchProvider()
......
Markdown is supported
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