summaryrefslogtreecommitdiffstats
path: root/src/widgets/qsplitter.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-10-19 22:51:19 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-10-19 22:51:19 -0500
commite230650065e8fd82816319f8fa1c63507027d022 (patch)
tree1bbb6c6e5ec8b92bd94f34eee95d01a863d4c61e /src/widgets/qsplitter.cpp
parent06e01077e1826d986821404d87de10399a7c1b6e (diff)
parent691129fbcb6c0f377abac61c6051700b4148efc4 (diff)
downloadtqt3-e230650065e8fd82816319f8fa1c63507027d022.tar.gz
tqt3-e230650065e8fd82816319f8fa1c63507027d022.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
Diffstat (limited to 'src/widgets/qsplitter.cpp')
-rw-r--r--src/widgets/qsplitter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/widgets/qsplitter.cpp b/src/widgets/qsplitter.cpp
index cedb498b0..f179a7aea 100644
--- a/src/widgets/qsplitter.cpp
+++ b/src/widgets/qsplitter.cpp
@@ -141,11 +141,15 @@ void TQSplitterHandle::mouseReleaseEvent( TQMouseEvent *e )
void TQSplitterHandle::paintEvent( TQPaintEvent * )
{
+ TQStyle::SFlags flags = (orientation() == Horizontal ? TQStyle::Style_Horizontal : 0);
+ if (hasMouse()) {
+ flags |= TQStyle::Style_MouseOver;
+ }
+
TQPainter p( this );
parentWidget()->style().drawPrimitive( TQStyle::PE_Splitter, &p, rect(),
colorGroup(),
- (orientation() == Horizontal ?
- TQStyle::Style_Horizontal : 0) );
+ flags );
}
TQCOORD TQSplitterLayoutStruct::getSizer( Orientation orient )