From ce5839405a6d5ce9a6317a5416fe11bfbe6f9b19 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 6 Aug 2011 13:21:04 -0500 Subject: [PATCH] Fix another Qt3/TQt4 FTBFS related to the QSplitter commit --- tqtinterface/qt4/src/widgets/tqsplitter.cpp | 10 ++++++++++ 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