From 0e044c1a92745f8508f5813efc9709a280583d11 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 16 Oct 2012 15:40:54 -0500 Subject: Automated update from Qt3 --- src/widgets/qsplitter.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/widgets/qsplitter.cpp') 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 ) -- cgit v1.2.3