summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/widgets/qsplitter.cpp10
-rw-r--r--src/widgets/qsplitter.h11
2 files changed, 10 insertions, 11 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
diff --git a/src/widgets/qsplitter.h b/src/widgets/qsplitter.h
index b5012f6..fea0af3 100644
--- a/src/widgets/qsplitter.h
+++ b/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