Changeset View
Changeset View
Standalone View
Standalone View
cursor.cpp
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | 115 | { | |||
---|---|---|---|---|---|
124 | // didn't get from environment variables, read from config file | 124 | // didn't get from environment variables, read from config file | ||
125 | loadThemeFromKConfig(); | 125 | loadThemeFromKConfig(); | ||
126 | } | 126 | } | ||
127 | 127 | | |||
128 | void Cursor::loadThemeFromKConfig() | 128 | void Cursor::loadThemeFromKConfig() | ||
129 | { | 129 | { | ||
130 | KConfigGroup mousecfg(kwinApp()->inputConfig(), "Mouse"); | 130 | KConfigGroup mousecfg(kwinApp()->inputConfig(), "Mouse"); | ||
131 | const QString themeName = mousecfg.readEntry("cursorTheme", "default"); | 131 | const QString themeName = mousecfg.readEntry("cursorTheme", "default"); | ||
132 | const uint themeSize = mousecfg.readEntry("cursorSize", 0); | 132 | const uint themeSize = mousecfg.readEntry("cursorSize", 24); | ||
133 | updateTheme(themeName, themeSize); | 133 | updateTheme(themeName, themeSize); | ||
134 | } | 134 | } | ||
135 | 135 | | |||
136 | void Cursor::updateTheme(const QString &name, int size) | 136 | void Cursor::updateTheme(const QString &name, int size) | ||
137 | { | 137 | { | ||
138 | if (m_themeName != name || m_themeSize != size) { | 138 | if (m_themeName != name || m_themeSize != size) { | ||
139 | m_themeName = name; | 139 | m_themeName = name; | ||
140 | m_themeSize = size; | 140 | m_themeSize = size; | ||
▲ Show 20 Lines • Show All 338 Lines • Show Last 20 Lines |