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/qsplitter.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/qsplitter.cpp')
-rw-r--r-- | src/widgets/qsplitter.cpp | 8 |
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 ) |