diff options
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 ) |