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
KWin
Commits
4d549d76
Commit
4d549d76
authored
Nov 09, 2020
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Nov 10, 2020
Browse files
startupfeedback: Don't use a lambda unnecessarily
parent
35fe4fa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
effects/startupfeedback/startupfeedback.cpp
View file @
4d549d76
...
...
@@ -277,13 +277,11 @@ void StartupFeedbackEffect::start(const QString& icon)
if
(
!
m_active
)
effects
->
startMousePolling
();
m_active
=
true
;
auto
readCursorSize
=
[]()
->
int
{
// read details about the mouse-cursor theme define per default
KConfigGroup
mousecfg
(
effects
->
inputConfig
(),
"Mouse"
);
int
cursorSize
=
mousecfg
.
readEntry
(
"cursorSize"
,
24
);
return
cursorSize
;
};
m_cursorSize
=
readCursorSize
();
// read details about the mouse-cursor theme define per default
KConfigGroup
mousecfg
(
effects
->
inputConfig
(),
"Mouse"
);
m_cursorSize
=
mousecfg
.
readEntry
(
"cursorSize"
,
24
);
int
iconSize
=
m_cursorSize
/
1.5
;
if
(
!
iconSize
)
{
iconSize
=
QApplication
::
style
()
->
pixelMetric
(
QStyle
::
PM_SmallIconSize
);
...
...
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