diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-10-06 15:01:14 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-10-06 15:01:14 (GMT) |
commit | d0dc82056231d40978e3369f2f4910298560bf98 (patch) | |
tree | 57af6d7438e576f4b232e9b448b40debb07d9b6a /tools/qtconfig/paletteeditoradvanced.cpp | |
parent | 311170a69e61fdd0fa4c302ec9ceb33df2c49a5d (diff) | |
download | Qt-d0dc82056231d40978e3369f2f4910298560bf98.zip Qt-d0dc82056231d40978e3369f2f4910298560bf98.tar.gz Qt-d0dc82056231d40978e3369f2f4910298560bf98.tar.bz2 |
Code cleaning with the merge request 2286
The merge request 2286 changes a lot of the QtConfig tool. I took
this opportunity to clean some old style mistake.
Diffstat (limited to 'tools/qtconfig/paletteeditoradvanced.cpp')
-rw-r--r-- | tools/qtconfig/paletteeditoradvanced.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/qtconfig/paletteeditoradvanced.cpp b/tools/qtconfig/paletteeditoradvanced.cpp index 196cdea..a700b8d 100644 --- a/tools/qtconfig/paletteeditoradvanced.cpp +++ b/tools/qtconfig/paletteeditoradvanced.cpp @@ -117,12 +117,10 @@ void PaletteEditorAdvanced::paletteSelected(int p) if(p == 1) { // inactive ui->groupCentral->setDisabled(ui->checkBuildInactive->isChecked()); ui->groupEffect->setDisabled(ui->checkBuildInactive->isChecked()); - } - else if (p == 2) { // disabled + } else if (p == 2) { // disabled ui->groupCentral->setDisabled(ui->checkBuildDisabled->isChecked()); ui->groupEffect->setDisabled(ui->checkBuildDisabled->isChecked()); - } - else { + } else { ui->groupCentral->setEnabled(true); ui->groupEffect->setEnabled(true); } @@ -263,8 +261,7 @@ QPalette PaletteEditorAdvanced::buildEffect(QPalette::ColorGroup colorGroup, result.setColor(colorGroup, effectRole, calculatedPalette.color(colorGroup, effectRole)); } - } - else { + } else { QColor btn = basePalette.color(colorGroup, QPalette::Button); result.setColor(colorGroup, QPalette::Light, btn.lighter()); |