Commit 3e1e20ee authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_EMIT

parent a1c8bbe2
......@@ -321,11 +321,11 @@ void KDEPlatformSystemTrayIcon::init()
connect(m_sni, &KStatusNotifierItem::activateRequested, [this](bool active, const QPoint &pos) {
Q_UNUSED(active)
Q_UNUSED(pos)
emit activated(QPlatformSystemTrayIcon::Trigger);
Q_EMIT activated(QPlatformSystemTrayIcon::Trigger);
});
connect(m_sni, &KStatusNotifierItem::secondaryActivateRequested, [this](const QPoint &pos) {
Q_UNUSED(pos)
emit activated(QPlatformSystemTrayIcon::MiddleClick);
Q_EMIT activated(QPlatformSystemTrayIcon::MiddleClick);
});
}
}
......
......@@ -63,7 +63,7 @@ void KFileTreeView::Private::_k_activated(const QModelIndex &index)
{
const QUrl url = urlForProxyIndex(index);
if (url.isValid()) {
emit q->activated(url);
Q_EMIT q->activated(url);
}
}
......@@ -71,7 +71,7 @@ void KFileTreeView::Private::_k_currentChanged(const QModelIndex &currentIndex,
{
const QUrl url = urlForProxyIndex(currentIndex);
if (url.isValid()) {
emit q->currentChanged(url);
Q_EMIT q->currentChanged(url);
}
}
......
......@@ -282,7 +282,7 @@ void KHintsSettings::slotNotifyChange(int type, int arg)
// QTBUG QGuiApplication::paletteChanged() signal is only emitted by QGuiApplication
// so things like SystemPalette QtQuick item that use it won't notice a palette
// change when a QApplication which causes e.g. QML System Settings modules to not update
emit qApp->paletteChanged(palette);
Q_EMIT qApp->paletteChanged(palette);
} else if (qobject_cast<QGuiApplication *>(QCoreApplication::instance())) {
QGuiApplication::setPalette(*m_palettes[QPlatformTheme::SystemPalette]);
}
......
......@@ -135,7 +135,7 @@ void QDBusMenuBar::handleReparent(QWindow *newParentWindow)
registerMenuBar();
}
emit windowChanged(newParentWindow, oldWindow);
Q_EMIT windowChanged(newParentWindow, oldWindow);
}
QPlatformMenu *QDBusMenuBar::menuForTag(quintptr tag) const
......
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