diff options
author | Timothy Pearson <[email protected]> | 2012-10-16 15:40:54 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-10-16 15:40:54 -0500 |
commit | 0e044c1a92745f8508f5813efc9709a280583d11 (patch) | |
tree | 67963c1b752b6fa680f9123b73fca2c703b7c61b /src/widgets/qsplitter.cpp | |
parent | ff2caed1b8e1bea513172d48d07b13f53b73a9de (diff) | |
download | tqt3-0e044c1a92745f8508f5813efc9709a280583d11.tar.gz tqt3-0e044c1a92745f8508f5813efc9709a280583d11.zip |
Automated update from Qt3
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 ) |