Changeset View
Changeset View
Standalone View
Standalone View
kstyle/config/breezestyleconfig.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 73 | { | |||
---|---|---|---|---|---|
92 | StyleConfigData::self()->writeConfig(); | 92 | StyleConfigData::self()->writeConfig(); | ||
93 | #else | 93 | #else | ||
94 | StyleConfigData::self()->save(); | 94 | StyleConfigData::self()->save(); | ||
95 | 95 | | |||
96 | //update the KDE4 config to match | 96 | //update the KDE4 config to match | ||
97 | Kdelibs4Migration migration; | 97 | Kdelibs4Migration migration; | ||
98 | const QString kde4ConfigDirPath = migration.saveLocation("config"); | 98 | const QString kde4ConfigDirPath = migration.saveLocation("config"); | ||
99 | 99 | | |||
100 | QScopedPointer<KConfig> kde4Config(StyleConfigData::self()->config()->copyTo(kde4ConfigDirPath+"/breezerc", 0)); | 100 | QScopedPointer<KConfig> kde4Config(StyleConfigData::self()->config()->copyTo(kde4ConfigDirPath+"/breezerc", nullptr)); | ||
101 | kde4Config->sync(); | 101 | kde4Config->sync(); | ||
102 | #endif | 102 | #endif | ||
103 | 103 | | |||
104 | // emit dbus signal | 104 | // emit dbus signal | ||
105 | QDBusMessage message( QDBusMessage::createSignal( QStringLiteral( "/BreezeStyle" ), QStringLiteral( "org.kde.Breeze.Style" ), QStringLiteral( "reparseConfiguration" ) ) ); | 105 | QDBusMessage message( QDBusMessage::createSignal( QStringLiteral( "/BreezeStyle" ), QStringLiteral( "org.kde.Breeze.Style" ), QStringLiteral( "reparseConfiguration" ) ) ); | ||
106 | QDBusConnection::sessionBus().send(message); | 106 | QDBusConnection::sessionBus().send(message); | ||
107 | 107 | | |||
108 | } | 108 | } | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |