diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-27 22:02:38 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-27 22:02:38 (GMT) |
commit | 10185d2de8d6bdfa29f7db74c94833fe41ab9859 (patch) | |
tree | 528eebf9b4297cb82b6c87c77840233287fea4c8 /src/Preferences.cc | |
parent | 3bf98dd19f9ed6b23f8d6ffba480ea62e22b0de4 (diff) |
More correct preference and warning settings for OpenCSG capability
Diffstat (limited to 'src/Preferences.cc')
-rw-r--r-- | src/Preferences.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Preferences.cc b/src/Preferences.cc index eb6af61..d240a9f 100644 --- a/src/Preferences.cc +++ b/src/Preferences.cc @@ -98,8 +98,8 @@ Preferences::Preferences(QWidget *parent) : QMainWindow(parent) this, SLOT(fontFamilyChanged(const QString &))); connect(this->fontSize, SIGNAL(editTextChanged(const QString &)), this, SLOT(fontSizeChanged(const QString &))); - connect(this->OpenGL20WarningCheckbox, SIGNAL(clicked(bool)), - this, SLOT(OpenGL20WarningChanged(bool))); + connect(this->openCSGWarningBox, SIGNAL(clicked(bool)), + this, SLOT(openCSGWarningChanged(bool))); updateGUI(); } @@ -151,7 +151,7 @@ void Preferences::fontSizeChanged(const QString &size) } void -Preferences::OpenGL20WarningChanged(bool state) +Preferences::openCSGWarningChanged(bool state) { QSettings settings; settings.setValue("editor/opengl20_warning_show",state); @@ -215,8 +215,7 @@ void Preferences::updateGUI() this->fontSize->setEditText(fontsize); } - bool opengl20_warning_show = getValue("editor/opengl20_warning_show").toBool(); - this->OpenGL20WarningCheckbox->setChecked(opengl20_warning_show); + this->openCSGWarningBox->setChecked(getValue("editor/opengl20_warning_show").toBool()); } void Preferences::apply() const |