MCPcopy Create free account
hub / github.com/KDE/labplot / colorSchemeChanged

Method colorSchemeChanged

src/frontend/MainWin.cpp:994–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994void 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.

Callers

nothing calls this directly

Calls 2

groupFunction · 0.85
textMethod · 0.45

Tested by

no test coverage detected