diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-10-19 22:51:19 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-10-19 22:51:19 -0500 |
commit | e230650065e8fd82816319f8fa1c63507027d022 (patch) | |
tree | 1bbb6c6e5ec8b92bd94f34eee95d01a863d4c61e /src/widgets/qslider.cpp | |
parent | 06e01077e1826d986821404d87de10399a7c1b6e (diff) | |
parent | 691129fbcb6c0f377abac61c6051700b4148efc4 (diff) | |
download | tqt3-e230650065e8fd82816319f8fa1c63507027d022.tar.gz tqt3-e230650065e8fd82816319f8fa1c63507027d022.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
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 ); |