startupfeedback: Don't use a lambda unnecessarily
This commit is contained in:
parent
35fe4fa7c1
commit
4d549d76be
1 changed files with 5 additions and 7 deletions
|
@ -277,13 +277,11 @@ void StartupFeedbackEffect::start(const QString& icon)
|
||||||
if (!m_active)
|
if (!m_active)
|
||||||
effects->startMousePolling();
|
effects->startMousePolling();
|
||||||
m_active = true;
|
m_active = true;
|
||||||
auto readCursorSize = []() -> int {
|
|
||||||
// read details about the mouse-cursor theme define per default
|
// read details about the mouse-cursor theme define per default
|
||||||
KConfigGroup mousecfg(effects->inputConfig(), "Mouse");
|
KConfigGroup mousecfg(effects->inputConfig(), "Mouse");
|
||||||
int cursorSize = mousecfg.readEntry("cursorSize", 24);
|
m_cursorSize = mousecfg.readEntry("cursorSize", 24);
|
||||||
return cursorSize;
|
|
||||||
};
|
|
||||||
m_cursorSize = readCursorSize();
|
|
||||||
int iconSize = m_cursorSize / 1.5;
|
int iconSize = m_cursorSize / 1.5;
|
||||||
if (!iconSize) {
|
if (!iconSize) {
|
||||||
iconSize = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize);
|
iconSize = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize);
|
||||||
|
|
Loading…
Reference in a new issue