|
|
|
@ -116,13 +116,7 @@ TQSizePolicy::ExpandData ButtonFlowLayout::expanding() const
|
|
|
|
|
|
|
|
|
|
TQLayoutIterator ButtonFlowLayout::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 ButtonFlowLayoutIterator( &list ) );
|
|
|
|
|
#endif // USE_QT4
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ButtonFlowLayout::setGeometry( const TQRect &r )
|
|
|
|
@ -236,33 +230,3 @@ TQSize ButtonFlowLayout::minimumSize(const TQSize &r) const
|
|
|
|
|
|
|
|
|
|
return s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef USE_QT4
|
|
|
|
|
/*!
|
|
|
|
|
\reimp
|
|
|
|
|
*/
|
|
|
|
|
int ButtonFlowLayout::count() const {
|
|
|
|
|
return list.count();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\reimp
|
|
|
|
|
*/
|
|
|
|
|
TQLayoutItem* ButtonFlowLayout::itemAt(int index) const {
|
|
|
|
|
return index >= 0 && index < list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(list).at(index)) : 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\reimp
|
|
|
|
|
*/
|
|
|
|
|
TQLayoutItem* ButtonFlowLayout::takeAt(int index) {
|
|
|
|
|
if (index < 0 || index >= list.count())
|
|
|
|
|
return 0;
|
|
|
|
|
TQLayoutItem *item = list.at(index);
|
|
|
|
|
list.remove(list.at(index));
|
|
|
|
|
delete item;
|
|
|
|
|
|
|
|
|
|
invalidate();
|
|
|
|
|
return item;
|
|
|
|
|
}
|
|
|
|
|
#endif // USE_QT4
|
|
|
|
|