diff options
Diffstat (limited to 'main/dependencies')
-rw-r--r-- | main/dependencies/qt3/src/widgets/qsplitter.cpp | 10 | ||||
-rw-r--r-- | main/dependencies/qt3/src/widgets/qsplitter.h | 11 |
2 files changed, 10 insertions, 11 deletions
diff --git a/main/dependencies/qt3/src/widgets/qsplitter.cpp b/main/dependencies/qt3/src/widgets/qsplitter.cpp index add3ade04..407441f5c 100644 --- a/main/dependencies/qt3/src/widgets/qsplitter.cpp +++ b/main/dependencies/qt3/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 diff --git a/main/dependencies/qt3/src/widgets/qsplitter.h b/main/dependencies/qt3/src/widgets/qsplitter.h index b5012f654..fea0af3ef 100644 --- a/main/dependencies/qt3/src/widgets/qsplitter.h +++ b/main/dependencies/qt3/src/widgets/qsplitter.h @@ -83,17 +83,6 @@ public: QCOORD getSizer( Orientation orient ); }; -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 Q_EXPORT QSplitter : public QFrame { Q_OBJECT |