Commit 4a778699 authored by Benjamin Port's avatar Benjamin Port

Set cursor size default to 24 to align with KCM default value

Reviewers: #plasma, meven, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Maniphest Tasks: T12040

Differential Revision: https://phabricator.kde.org/D28653
parent 6d7fe9e5
......@@ -481,16 +481,7 @@ void KHintsSettings::updateCursorTheme()
KConfig config(QStringLiteral("kcminputrc"));
KConfigGroup g(&config, "Mouse");
int size = g.readEntry("cursorSize", -1);
// Default cursor size is 16 points
if (size == -1) {
if (QScreen *s = QGuiApplication::primaryScreen()) {
size = s->logicalDotsPerInchY() * 16 / 72;
} else {
size = 0;
}
}
int size = g.readEntry("cursorSize", 24);
#if HAVE_X11
if (QX11Info::isPlatformX11()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment