Changeset View
Changeset View
Standalone View
Standalone View
cursor.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 50 | { | |||
---|---|---|---|---|---|
51 | s_self = this; | 51 | s_self = this; | ||
52 | loadThemeSettings(); | 52 | loadThemeSettings(); | ||
53 | QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KGlobalSettings"), QStringLiteral("org.kde.KGlobalSettings"), | 53 | QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KGlobalSettings"), QStringLiteral("org.kde.KGlobalSettings"), | ||
54 | QStringLiteral("notifyChange"), this, SLOT(slotKGlobalSettingsNotifyChange(int,int))); | 54 | QStringLiteral("notifyChange"), this, SLOT(slotKGlobalSettingsNotifyChange(int,int))); | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | Cursor::~Cursor() | 57 | Cursor::~Cursor() | ||
58 | { | 58 | { | ||
59 | s_self = NULL; | 59 | s_self = nullptr; | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | void Cursor::loadThemeSettings() | 62 | void Cursor::loadThemeSettings() | ||
63 | { | 63 | { | ||
64 | QString themeName = QString::fromUtf8(qgetenv("XCURSOR_THEME")); | 64 | QString themeName = QString::fromUtf8(qgetenv("XCURSOR_THEME")); | ||
65 | bool ok = false; | 65 | bool ok = false; | ||
66 | // XCURSOR_SIZE might not be set (e.g. by startkde) | 66 | // XCURSOR_SIZE might not be set (e.g. by startkde) | ||
67 | const uint themeSize = qEnvironmentVariableIntValue("XCURSOR_SIZE", &ok); | 67 | const uint themeSize = qEnvironmentVariableIntValue("XCURSOR_SIZE", &ok); | ||
▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines |