src/settingseditor/settingseditor.cpp

changeset 39
caac957e9834
parent 16
aeb5f203b3eb
child 40
30cb5e836736
--- a/src/settingseditor/settingseditor.cpp	Sat Feb 01 15:49:28 2020 +0200
+++ b/src/settingseditor/settingseditor.cpp	Sat Feb 01 17:10:11 2020 +0200
@@ -37,6 +37,7 @@
 void SettingsEditor::handleAccepted()
 {
 	this->settings->setValue("locale", this->ui.language->currentData().toString());
+	this->settings->setValue("Render/MainColor", this->ui.mainColorButton->selectedColor().name());
 	this->librariesEditor.saveSettings(this->settings);
 }
 
@@ -65,6 +66,7 @@
 void SettingsEditor::setDefaults()
 {
 	this->setCurrentLanguage(this->settings->value("locale", QLocale::system().name()).toString());
+	this->ui.mainColorButton->setSelectedColor(this->settings->value("Render/MainColor").toString());
 }
 
 void SettingsEditor::setCurrentLanguage(const QString& localeCode)

mercurial