summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r--qt-ui/preferences.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index 5a1a2a5e2..f8b24da42 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -15,10 +15,28 @@ PreferencesDialog::PreferencesDialog(QWidget* parent, Qt::WindowFlags f) : QDial
{
ui.setupUi(this);
connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(buttonClicked(QAbstractButton*)));
+ connect(ui.gflow, SIGNAL(valueChanged(int)), this, SLOT(gflowChanged(int)));
+ connect(ui.gfhigh, SIGNAL(valueChanged(int)), this, SLOT(gfhighChanged(int)));
setUiFromPrefs();
rememberPrefs();
}
+void PreferencesDialog::gflowChanged(int gf)
+{
+ if (gf > 100)
+ ui.gflow->setStyleSheet("* { color: red; }");
+ else
+ ui.gflow->setStyleSheet("");
+}
+
+void PreferencesDialog::gfhighChanged(int gf)
+{
+ if (gf > 100)
+ ui.gfhigh->setStyleSheet("* { color: red; }");
+ else
+ ui.gfhigh->setStyleSheet("");
+}
+
void PreferencesDialog::showEvent(QShowEvent *event)
{
setUiFromPrefs();