summaryrefslogtreecommitdiffstats
path: root/src/widgets/qslider.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-16 15:40:54 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-16 15:40:54 -0500
commit0e044c1a92745f8508f5813efc9709a280583d11 (patch)
tree67963c1b752b6fa680f9123b73fca2c703b7c61b /src/widgets/qslider.cpp
parentff2caed1b8e1bea513172d48d07b13f53b73a9de (diff)
downloadtqt3-0e044c1a92745f8508f5813efc9709a280583d11.tar.gz
tqt3-0e044c1a92745f8508f5813efc9709a280583d11.zip
Automated update from Qt3
Diffstat (limited to 'src/widgets/qslider.cpp')
-rw-r--r--src/widgets/qslider.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widgets/qslider.cpp b/src/widgets/qslider.cpp
index fd9dd15b5..fd8c36581 100644
--- a/src/widgets/qslider.cpp
+++ b/src/widgets/qslider.cpp
@@ -415,10 +415,13 @@ void TQSlider::paintEvent( TQPaintEvent * )
flags |= TQStyle::Style_Enabled;
if (hasFocus())
flags |= TQStyle::Style_HasFocus;
+ if (hasMouse())
+ flags |= TQStyle::Style_MouseOver;
TQStyle::SCFlags sub = TQStyle::SC_SliderGroove | TQStyle::SC_SliderHandle;
- if ( tickmarks() != NoMarks )
+ if ( tickmarks() != NoMarks ) {
sub |= TQStyle::SC_SliderTickmarks;
+ }
style().drawComplexControl( TQStyle::CC_Slider, &p, this, rect(), colorGroup(),
flags, sub, state == Dragging ? TQStyle::SC_SliderHandle : TQStyle::SC_None );