Changeset View
Changeset View
Standalone View
Standalone View
kcms/style/kcmstyle.cpp
Show First 20 Lines • Show All 356 Lines • ▼ Show 20 Line(s) | |||||
357 | 357 | | |||
358 | 358 | | |||
359 | void KCMStyle::save() | 359 | void KCMStyle::save() | ||
360 | { | 360 | { | ||
361 | // Don't do anything if we don't need to. | 361 | // Don't do anything if we don't need to. | ||
362 | if ( !(m_bStyleDirty | m_bEffectsDirty ) ) | 362 | if ( !(m_bStyleDirty | m_bEffectsDirty ) ) | ||
363 | return; | 363 | return; | ||
364 | 364 | | |||
365 | const bool showMenuIcons = !QApplication::testAttribute(Qt::AA_DontShowIconsInMenus); | | |||
366 | if (fineTuningUi.cbIconsInMenus->isChecked() != showMenuIcons) { | | |||
367 | KMessageBox::information(this, | | |||
368 | i18n("<p>Changes to the visibility of menu icons will only affect newly started applications.</p>"), | | |||
369 | i18nc("@title:window", "Menu Icons Changed"), QStringLiteral("MenuIconsChanged")); | | |||
370 | } | | |||
371 | | ||||
372 | // Save effects. | 365 | // Save effects. | ||
373 | KConfig _config(QStringLiteral("kdeglobals"), KConfig::NoGlobals); | 366 | KConfig _config(QStringLiteral("kdeglobals"), KConfig::NoGlobals); | ||
374 | KConfigGroup config(&_config, "KDE"); | 367 | KConfigGroup config(&_config, "KDE"); | ||
375 | // Effects page | 368 | // Effects page | ||
376 | config.writeEntry( "ShowIconsOnPushButtons", fineTuningUi.cbIconsOnButtons->isChecked()); | 369 | config.writeEntry( "ShowIconsOnPushButtons", fineTuningUi.cbIconsOnButtons->isChecked()); | ||
377 | config.writeEntry( "ShowIconsInMenuItems", fineTuningUi.cbIconsInMenus->isChecked()); | 370 | config.writeEntry( "ShowIconsInMenuItems", fineTuningUi.cbIconsInMenus->isChecked()); | ||
378 | 371 | | |||
379 | config.writeEntry("widgetStyle", currentStyle()); | 372 | config.writeEntry("widgetStyle", currentStyle()); | ||
▲ Show 20 Lines • Show All 430 Lines • Show Last 20 Lines |