summaryrefslogtreecommitdiffstats
path: root/src/widgets/qslider.cpp
diff options
context:
space:
mode:
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 );