summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/liquid/liquid.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp
index 4a65952..bac882c 100644
--- a/noncore/styles/liquid/liquid.cpp
+++ b/noncore/styles/liquid/liquid.cpp
@@ -169,9 +169,4 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev)
-static int qt_version ( )
-{
- const char *qver = qVersion ( );
- return ( qver [0] - '0' ) * 100 + ( qver [2] - '0' ) * 10 + ( qver [4] - '0' );
-}
@@ -181,5 +176,4 @@ LiquidStyle::LiquidStyle()
setName ( "LiquidStyle" );
- oldqte = ( qt_version ( ) < 234 );
flatTBButtons = false;
currentHeader = 0;
@@ -708,8 +702,6 @@ void LiquidStyle::polish(QPalette &appPal)
// button color stuff
config. setGroup ( "Appearance" );
- QColor c = oldqte ? QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( )))
- : appPal. color ( QPalette::Active, QColorGroup::Button );
- if ( c == ( oldqte ? QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))
- : appPal. color ( QPalette::Active, QColorGroup::Background ))) {
+ QColor c = appPal. color ( QPalette::Active, QColorGroup::Button );
+ if ( c == appPal. color ( QPalette::Active, QColorGroup::Background )) {
// force button color to be different from background
QBrush btnBrush(QColor(200, 202, 228));
@@ -762,6 +754,5 @@ void LiquidStyle::polish(QPalette &appPal)
// background color stuff
- c = oldqte ? QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( )))
- : appPal. color ( QPalette::Active, QColorGroup::Background );
+ c = appPal. color ( QPalette::Active, QColorGroup::Background );
c.hsv(&bH, &bS, &bV);