MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / on_cbPalette_currentIndexChanged

Method on_cbPalette_currentIndexChanged

example/optionsdialog.cpp:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void OptionsDialog::on_cbPalette_currentIndexChanged(int index)
110{
111 QSettings settings;
112 settings.setValue("Theme", index);
113
114 switch (index)
115 {
116 case 1:
117 qApp->setPalette(_darkMode);
118 break;
119 default:
120 qApp->setPalette(_defaultMode);
121 break;
122 }
123}

Callers

nothing calls this directly

Calls 1

setPaletteMethod · 0.80

Tested by

no test coverage detected