summaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-14 19:35:54 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-14 19:35:54 -0500
commit9a4765a62e321af08ec96a03cdbef64039788e86 (patch)
treefd261fdcf042d490030a2a1d337cf1b7cc8b514f /src/styles
parentc740211ffba3330d951f4c3ddefea8edf23a01cd (diff)
downloadtqt3-9a4765a62e321af08ec96a03cdbef64039788e86.tar.gz
tqt3-9a4765a62e321af08ec96a03cdbef64039788e86.zip
Automated update from Qt3
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/qcommonstyle.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp
index ad866982..bf850778 100644
--- a/src/styles/qcommonstyle.cpp
+++ b/src/styles/qcommonstyle.cpp
@@ -42,6 +42,7 @@
#ifndef QT_NO_STYLE
+#include "ntqmutex.h"
#include "ntqmenubar.h"
#include "ntqapplication.h"
#include "ntqpainter.h"
@@ -2782,6 +2783,9 @@ int TQCommonStyle::pixelMetric(PixelMetric m, const TQStyleControlElementData &c
ret = TQMAX( TQFontMetrics(ceData.font).lineSpacing(), 18 );
}
}
+ else {
+ ret = 0;
+ }
break; }
case PM_ScrollBarSliderMin:
ret = 9;
@@ -2853,12 +2857,15 @@ int TQCommonStyle::pixelMetric(PixelMetric m, const TQStyleControlElementData &c
int thickness = pixelMetric( PM_SliderControlThickness, ceData, elementFlags, widget );
int ticks = ceData.tickMarkSetting;
- if ( ticks == TQSlider::Both )
+ if ( ticks == TQSlider::Both ) {
ret = (space - thickness) / 2;
- else if ( ticks == TQSlider::Above )
+ }
+ else if ( ticks == TQSlider::Above ) {
ret = space - thickness;
- else
+ }
+ else {
ret = 0;
+ }
break;
}