diff options
author | Timothy Pearson <[email protected]> | 2011-08-06 13:21:04 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-08-06 13:21:04 -0500 |
commit | 76192ffc96b326f57cf932ed68600a3017a76fab (patch) | |
tree | 1257308765af0e9c36e986d63c1a4debcdf7f402 /src/widgets/qsplitter.cpp | |
parent | 1692373bba54329dbf520a6067c91d4479d02d04 (diff) | |
download | qt3-76192ffc96b326f57cf932ed68600a3017a76fab.tar.gz qt3-76192ffc96b326f57cf932ed68600a3017a76fab.zip |
Fix another Qt3/TQt4 FTBFS related to the QSplitter commit
Diffstat (limited to 'src/widgets/qsplitter.cpp')
-rw-r--r-- | src/widgets/qsplitter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/widgets/qsplitter.cpp b/src/widgets/qsplitter.cpp index add3ade..407441f 100644 --- a/src/widgets/qsplitter.cpp +++ b/src/widgets/qsplitter.cpp @@ -148,6 +148,16 @@ void QSplitterHandle::paintEvent( QPaintEvent * ) QStyle::Style_Horizontal : 0) ); } +QCOORD QSplitterLayoutStruct::getSizer( Orientation orient ) +{ + if ( sizer == -1 ) { + QSize s = wid->sizeHint(); + if ( !s.isValid() || wid->testWState(WState_Resized) ) + s = wid->size(); + sizer = ( orient == Horizontal ) ? s.width() : s.height(); + } + return sizer; +} /*! \class QSplitter |