|
|
@ -83,22 +83,12 @@ TQSize SimpleFlow::sizeHint() const
|
|
|
|
|
|
|
|
|
|
|
|
TQSizePolicy::ExpandData SimpleFlow::expanding() const
|
|
|
|
TQSizePolicy::ExpandData SimpleFlow::expanding() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef USE_QT4
|
|
|
|
|
|
|
|
return (Qt::Orientation)TQSizePolicy::NoDirection;
|
|
|
|
|
|
|
|
#else // USE_QT4
|
|
|
|
|
|
|
|
return TQSizePolicy::NoDirection;
|
|
|
|
return TQSizePolicy::NoDirection;
|
|
|
|
#endif // USE_QT4
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQLayoutIterator SimpleFlow::iterator()
|
|
|
|
TQLayoutIterator SimpleFlow::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 SimpleFlowIterator( &list ) );
|
|
|
|
return TQLayoutIterator( new SimpleFlowIterator( &list ) );
|
|
|
|
#endif // USE_QT4
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void SimpleFlow::setGeometry( const TQRect &r )
|
|
|
|
void SimpleFlow::setGeometry( const TQRect &r )
|
|
|
@ -142,34 +132,3 @@ TQSize SimpleFlow::minimumSize() const
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return s;
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_QT4
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
\reimp
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
int SimpleFlow::count() const {
|
|
|
|
|
|
|
|
return list.count();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
\reimp
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
TQLayoutItem* SimpleFlow::itemAt(int index) const {
|
|
|
|
|
|
|
|
return index >= 0 && index < list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(list).at(index)) : 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
\reimp
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
TQLayoutItem* SimpleFlow::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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|