diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-16 15:40:54 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-16 15:40:54 -0500 |
commit | 0e044c1a92745f8508f5813efc9709a280583d11 (patch) | |
tree | 67963c1b752b6fa680f9123b73fca2c703b7c61b /src/widgets/qslider.cpp | |
parent | ff2caed1b8e1bea513172d48d07b13f53b73a9de (diff) | |
download | tqt3-0e044c1a92745f8508f5813efc9709a280583d11.tar.gz tqt3-0e044c1a92745f8508f5813efc9709a280583d11.zip |
Automated update from Qt3
Diffstat (limited to 'src/widgets/qslider.cpp')
-rw-r--r-- | src/widgets/qslider.cpp | 5 |
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 ); |