diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-06 13:21:04 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-06 13:21:04 -0500 |
commit | ce5839405a6d5ce9a6317a5416fe11bfbe6f9b19 (patch) | |
tree | a47186b37eecbadfee4051e7cf6e63f66b364c68 | |
parent | 467eda0e55ff1a9db0155dca33fb0cafb3f58cea (diff) | |
download | experimental-ce5839405a6d5ce9a6317a5416fe11bfbe6f9b19.tar.gz experimental-ce5839405a6d5ce9a6317a5416fe11bfbe6f9b19.zip |
Fix another Qt3/TQt4 FTBFS related to the QSplitter commit
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqsplitter.cpp | 10 | ||||
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqsplitter.h | 11 |
2 files changed, 10 insertions, 11 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqsplitter.cpp b/tqtinterface/qt4/src/widgets/tqsplitter.cpp index 5abfc71..50a4a13 100644 --- a/tqtinterface/qt4/src/widgets/tqsplitter.cpp +++ b/tqtinterface/qt4/src/widgets/tqsplitter.cpp @@ -148,6 +148,16 @@ void TQSplitterHandle::paintEvent( TQPaintEvent * ) TQStyle::Style_Horizontal : 0) ); } +TQCOORD TQSplitterLayoutStruct::getSizer( Qt::Orientation orient ) +{ + if ( sizer == -1 ) { + TQSize s = wid->tqsizeHint(); + if ( !s.isValid() || wid->testWState(WState_Resized) ) + s = wid->size(); + sizer = ( orient == Qt::Horizontal ) ? s.width() : s.height(); + } + return sizer; +} /*! \class TQSplitter diff --git a/tqtinterface/qt4/src/widgets/tqsplitter.h b/tqtinterface/qt4/src/widgets/tqsplitter.h index 1ad7693..306e144 100644 --- a/tqtinterface/qt4/src/widgets/tqsplitter.h +++ b/tqtinterface/qt4/src/widgets/tqsplitter.h @@ -83,17 +83,6 @@ public: TQCOORD getSizer( Qt::Orientation orient ); }; -TQCOORD TQSplitterLayoutStruct::getSizer( Qt::Orientation orient ) -{ - if ( sizer == -1 ) { - TQSize s = wid->tqsizeHint(); - if ( !s.isValid() || wid->testWState(WState_Resized) ) - s = wid->size(); - sizer = ( orient == Qt::Horizontal ) ? s.width() : s.height(); - } - return sizer; -} - class TQ_EXPORT TQSplitter : public TQFrame { Q_OBJECT |