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 Workspace
Commits
640242a4
Commit
640242a4
authored
Mar 13, 2022
by
Laurent Montel
Browse files
const'ify + fix clazy warnings
parent
5fbe1eab
Pipeline
#149893
passed with stage
in 5 minutes and 42 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
startkde/startplasma-wayland.cpp
View file @
640242a4
...
...
@@ -34,7 +34,7 @@ int main(int argc, char **argv)
const
QString
locale1Service
=
QStringLiteral
(
"org.freedesktop.locale1"
);
const
QString
locale1Path
=
QStringLiteral
(
"/org/freedesktop/locale1"
);
QDBusMessage
message
=
QDBusMessage
::
createMethodCall
(
locale1Service
,
locale1Path
,
QStringLiteral
(
"org.freedesktop.DBus.Properties"
),
Q
Latin1
String
(
"GetAll"
));
QDBusMessage
::
createMethodCall
(
locale1Service
,
locale1Path
,
QStringLiteral
(
"org.freedesktop.DBus.Properties"
),
QString
Literal
(
"GetAll"
));
message
<<
locale1Service
;
QDBusMessage
resultMessage
=
QDBusConnection
::
systemBus
().
call
(
message
);
if
(
resultMessage
.
type
()
==
QDBusMessage
::
ReplyMessage
)
{
...
...
statusnotifierwatcher/statusnotifierwatcher.cpp
View file @
640242a4
...
...
@@ -80,7 +80,7 @@ void StatusNotifierWatcher::serviceUnregistered(const QString &name)
qDebug
()
<<
"Service "
<<
name
<<
"unregistered"
;
m_serviceWatcher
->
removeWatchedService
(
name
);
QString
match
=
name
+
QLatin1Char
(
'/'
);
const
QString
match
=
name
+
QLatin1Char
(
'/'
);
QStringList
::
Iterator
it
=
m_registeredServices
.
begin
();
while
(
it
!=
m_registeredServices
.
end
())
{
if
(
it
->
startsWith
(
match
))
{
...
...
wallpapers/image/image.cpp
View file @
640242a4
...
...
@@ -313,7 +313,7 @@ void Image::useSingleImageDefaults()
if
(
m_wallpaper
.
isEmpty
())
{
Plasma
::
Theme
theme
;
m_wallpaper
=
theme
.
wallpaperPath
();
int
index
=
m_wallpaper
.
indexOf
(
Q
String
::
from
Latin1
(
"/contents/images/"
));
int
index
=
m_wallpaper
.
indexOf
(
QLatin1
String
(
"/contents/images/"
));
if
(
index
>
-
1
)
{
// We have file from package -> get path to package
m_wallpaper
=
m_wallpaper
.
left
(
index
);
}
...
...
wallpapers/image/plasma-apply-wallpaperimage.cpp
View file @
640242a4
...
...
@@ -74,7 +74,10 @@ int main(int argc, char **argv)
<<
"d.currentConfigGroup = ['Wallpaper', 'org.kde.image', 'General'];"
<<
"d.writeConfig('Image', 'file://"
+
wallpaperFile
+
"');"
<<
"}"
;
auto
message
=
QDBusMessage
::
createMethodCall
(
"org.kde.plasmashell"
,
"/PlasmaShell"
,
"org.kde.PlasmaShell"
,
"evaluateScript"
);
auto
message
=
QDBusMessage
::
createMethodCall
(
QStringLiteral
(
"org.kde.plasmashell"
),
QStringLiteral
(
"/PlasmaShell"
),
QStringLiteral
(
"org.kde.PlasmaShell"
),
QStringLiteral
(
"evaluateScript"
));
message
.
setArguments
(
QVariantList
()
<<
QVariant
(
script
));
auto
reply
=
QDBusConnection
::
sessionBus
().
call
(
message
);
...
...
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