|
|
|
@ -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"
|
|
|
|
|