mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Code Cleanup
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8a116ba510
commit
f20e07dcf1
1 changed files with 4 additions and 9 deletions
|
@ -23,21 +23,16 @@ PreferencesDialog::PreferencesDialog(QWidget* parent, Qt::WindowFlags f) : QDial
|
|||
rememberPrefs();
|
||||
}
|
||||
|
||||
#define DANGER_GF ( gf > 100 ) ? "* { color: red; }" : ""
|
||||
void PreferencesDialog::gflowChanged(int gf)
|
||||
{
|
||||
if (gf > 100)
|
||||
ui.gflow->setStyleSheet("* { color: red; }");
|
||||
else
|
||||
ui.gflow->setStyleSheet("");
|
||||
ui.gflow->setStyleSheet(DANGER_GF);
|
||||
}
|
||||
|
||||
void PreferencesDialog::gfhighChanged(int gf)
|
||||
{
|
||||
if (gf > 100)
|
||||
ui.gfhigh->setStyleSheet("* { color: red; }");
|
||||
else
|
||||
ui.gfhigh->setStyleSheet("");
|
||||
ui.gfhigh->setStyleSheet(DANGER_GF);
|
||||
}
|
||||
#undef DANGER_GF
|
||||
|
||||
void PreferencesDialog::showEvent(QShowEvent *event)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue