summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-06 13:21:04 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-06 13:21:04 -0500
commit76192ffc96b326f57cf932ed68600a3017a76fab (patch)
tree1257308765af0e9c36e986d63c1a4debcdf7f402
parent1692373bba54329dbf520a6067c91d4479d02d04 (diff)
downloadqt3-76192ffc96b326f57cf932ed68600a3017a76fab.tar.gz
qt3-76192ffc96b326f57cf932ed68600a3017a76fab.zip
Fix another Qt3/TQt4 FTBFS related to the QSplitter commit
-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