Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Add-ons
Commits
c3328db8
Verified
Commit
c3328db8
authored
Feb 11, 2021
by
Alexander Lohnau
💬
Browse files
Normalize some signatures
parent
8cffbd2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/nightcolor/plugin/monitor.cpp
View file @
c3328db8
...
...
@@ -36,12 +36,14 @@ void MonitorPrivate::handleServiceRegistered()
{
QDBusConnection
bus
=
QDBusConnection
::
sessionBus
();
// clang-format off
const
bool
connected
=
bus
.
connect
(
s_serviceName
,
s_nightColorPath
,
s_propertiesInterface
,
QStringLiteral
(
"PropertiesChanged"
),
this
,
SLOT
(
handlePropertiesChanged
(
QString
,
QVariantMap
,
QStringList
)));
SLOT
(
handlePropertiesChanged
(
QString
,
QVariantMap
,
QStringList
)));
// clang-format on
if
(
!
connected
)
{
return
;
}
...
...
@@ -68,12 +70,14 @@ void MonitorPrivate::handleServiceUnregistered()
{
QDBusConnection
bus
=
QDBusConnection
::
sessionBus
();
// clang-format off
bus
.
disconnect
(
s_serviceName
,
s_nightColorPath
,
s_propertiesInterface
,
QStringLiteral
(
"PropertiesChanged"
),
this
,
SLOT
(
handlePropertiesChanged
(
QString
,
QVariantMap
,
QStringList
)));
SLOT
(
handlePropertiesChanged
(
QString
,
QVariantMap
,
QStringList
)));
// clang-format on
setAvailable
(
false
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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