Drop USE_TQT4 code

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/8/head
Michele Calgaro 9 months ago
parent 6f0ece848b
commit efda7b84b2
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -209,13 +209,7 @@ TQSizePolicy::ExpandData FlowLayout::expanding() const{
}
TQLayoutIterator FlowLayout::iterator(){
// [FIXME]
#ifdef USE_QT4
#warning [FIXME] ContainerAreaLayout iterators may not function correctly under Qt4
return TQLayoutIterator( this ); // [FIXME]
#else // USE_QT4
return TQLayoutIterator(new FlowLayoutIterator(&mLayoutItems));
#endif // USE_QT4
}
Qt::Orientation FlowLayout::getOrientation() const{
@ -316,33 +310,4 @@ int FlowLayout::doLayoutVertical( const TQRect& rect, bool testOnly ){
return y + height - rect.y(); // height
}
#ifdef USE_QT4
/*!
\reimp
*/
int FlowLayout::count() const {
return mLayoutItems.count();
}
/*!
\reimp
*/
TQLayoutItem* FlowLayout::itemAt(int index) const {
return index >= 0 && index < mLayoutItems.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(mLayoutItems).at(index)) : 0;
}
/*!
\reimp
*/
TQLayoutItem* FlowLayout::takeAt(int index) {
if (index < 0 || index >= mLayoutItems.count())
return 0;
TQLayoutItem *item = mLayoutItems.at(index);
mLayoutItems.remove(mLayoutItems.at(index));
delete item;
invalidate();
return item;
}
#endif // USE_QT4
#include "flowlayout.moc"

@ -68,10 +68,6 @@ public:
TQSizePolicy::ExpandData expanding() const;
Qt::Orientation getOrientation() const;
#ifdef USE_QT4
QLAYOUT_REQUIRED_METHOD_DECLARATIONS
#endif // USE_QT4
public slots:
void setOrientation(Qt::Orientation orientation);

Loading…
Cancel
Save