Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Integration
Commits
3e1e20ee
Commit
3e1e20ee
authored
Oct 24, 2020
by
Laurent Montel
Browse files
Use Q_EMIT
parent
a1c8bbe2
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/platformtheme/kdeplatformsystemtrayicon.cpp
View file @
3e1e20ee
...
...
@@ -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
);
});
}
}
...
...
src/platformtheme/kfiletreeview.cpp
View file @
3e1e20ee
...
...
@@ -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 ¤tIndex,
{
const
QUrl
url
=
urlForProxyIndex
(
currentIndex
);
if
(
url
.
isValid
())
{
emit
q
->
currentChanged
(
url
);
Q_EMIT
q
->
currentChanged
(
url
);
}
}
...
...
src/platformtheme/khintssettings.cpp
View file @
3e1e20ee
...
...
@@ -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
]);
}
...
...
src/platformtheme/qdbusmenubar.cpp
View file @
3e1e20ee
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment