| 992 | } |
| 993 | |
| 994 | void MainWin::colorSchemeChanged(QAction* action) { |
| 995 | // save the selected color scheme |
| 996 | auto group = Settings::group(QStringLiteral("Settings_General")); |
| 997 | const auto& schemeName = KLocalizedString::removeAcceleratorMarker(action->text()); |
| 998 | group.writeEntry(QStringLiteral("ColorScheme"), schemeName); |
| 999 | group.sync(); |
| 1000 | } |
| 1001 | |
| 1002 | /*! |
| 1003 | Asks to save the project if it was modified. |