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 407441f..f97393c 100644 --- a/src/widgets/qsplitter.cpp +++ b/src/widgets/qsplitter.cpp @@ -141,11 +141,15 @@ void QSplitterHandle::mouseReleaseEvent( QMouseEvent *e ) void QSplitterHandle::paintEvent( QPaintEvent * ) { + QStyle::SFlags flags = (orientation() == Horizontal ? QStyle::Style_Horizontal : 0); + if (hasMouse()) { + flags |= QStyle::Style_MouseOver; + } + QPainter p( this ); parentWidget()->style().drawPrimitive( QStyle::PE_Splitter, &p, rect(), colorGroup(), - (orientation() == Horizontal ? - QStyle::Style_Horizontal : 0) ); + flags ); } QCOORD QSplitterLayoutStruct::getSizer( Orientation orient ) |