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 Desktop
Commits
63c45b92
Commit
63c45b92
authored
May 01, 2022
by
Méven Car
Browse files
KWinWaylandBackend: fix a few warnings in findDevices
parent
b4b71eea
Pipeline
#170433
passed with stage
in 2 minutes and 37 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
kcms/mouse/backends/kwin_wl/kwin_wl_backend.cpp
View file @
63c45b92
...
...
@@ -54,17 +54,17 @@ KWinWaylandBackend::~KWinWaylandBackend()
void
KWinWaylandBackend
::
findDevices
()
{
QStringList
devicesSysNames
;
const
QVariant
reply
=
m_deviceManager
->
property
(
"devicesSysNames"
);
if
(
reply
.
isValid
())
{
const
QVariant
reply
DevicesSysNames
=
m_deviceManager
->
property
(
"devicesSysNames"
);
if
(
reply
DevicesSysNames
.
isValid
())
{
qCDebug
(
KCM_MOUSE
)
<<
"Devices list received successfully from KWin."
;
devicesSysNames
=
reply
.
toStringList
();
devicesSysNames
=
reply
DevicesSysNames
.
toStringList
();
}
else
{
qCCritical
(
KCM_MOUSE
)
<<
"Error on receiving device list from KWin."
;
m_errorString
=
i18n
(
"Querying input devices failed. Please reopen this settings module."
);
return
;
}
for
(
QString
sn
:
devicesSysNames
)
{
for
(
const
QString
&
sn
:
qAsConst
(
devicesSysNames
)
)
{
QDBusInterface
deviceIface
(
QStringLiteral
(
"org.kde.KWin"
),
QStringLiteral
(
"/org/kde/KWin/InputDevice/"
)
+
sn
,
QStringLiteral
(
"org.kde.KWin.InputDevice"
),
...
...
kcms/mouse/backends/kwin_wl/kwin_wl_device.cpp
View file @
63c45b92
...
...
@@ -58,7 +58,7 @@ Qt::MouseButtons valueLoaderPart(QVariant const &reply)
}
}
KWinWaylandDevice
::
KWinWaylandDevice
(
QString
dbusName
)
KWinWaylandDevice
::
KWinWaylandDevice
(
const
QString
&
dbusName
)
{
m_iface
=
new
QDBusInterface
(
QStringLiteral
(
"org.kde.KWin"
),
QStringLiteral
(
"/org/kde/KWin/InputDevice/"
)
+
dbusName
,
...
...
kcms/mouse/backends/kwin_wl/kwin_wl_device.h
View file @
63c45b92
...
...
@@ -57,7 +57,7 @@ class KWinWaylandDevice : public QObject
Q_PROPERTY
(
qreal
scrollFactor
READ
scrollFactor
WRITE
setScrollFactor
NOTIFY
scrollFactorChanged
)
public:
KWinWaylandDevice
(
QString
dbusName
);
KWinWaylandDevice
(
const
QString
&
dbusName
);
~
KWinWaylandDevice
()
override
;
bool
init
();
...
...
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