Fix another Qt3/TQt4 FTBFS related to the QSplitter commit

pull/1/head
Timothy Pearson 13 years ago
parent 467eda0e55
commit ce5839405a

@ -148,6 +148,16 @@ void TQSplitterHandle::paintEvent( TQPaintEvent * )
TQStyle::Style_Horizontal : 0) ); 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 \class TQSplitter

@ -83,17 +83,6 @@ public:
TQCOORD getSizer( Qt::Orientation orient ); 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 class TQ_EXPORT TQSplitter : public TQFrame
{ {
Q_OBJECT Q_OBJECT

Loading…
Cancel
Save