26 #define YUILogComponent "qt-ui" 27 #include <yui/YUILog.h> 28 #include "YQLayoutBox.h" 32 YUIDimension dimension )
33 : QWidget( (QWidget *) parent->widgetRep() )
34 , YLayoutBox( parent, dimension )
35 , _needToEnsureChildrenVisible( false )
49 QWidget::setEnabled( enabled );
50 YWidget::setEnabled( enabled );
58 if ( _needToEnsureChildrenVisible )
71 resize( newWidth, newHeight );
72 YLayoutBox::setSize( newWidth, newHeight );
73 _needToEnsureChildrenVisible =
true;
79 QWidget * qw = (QWidget *)( child->widgetRep() );
80 qw->move( newX, newY );
92 for ( YWidgetChildrenManager::ChildrenList::const_iterator it = childrenManager()->begin();
93 it != childrenManager()->end();
96 QWidget * child = (QWidget *) (*it)->widgetRep();
98 if ( child && ! child->isVisible() )
104 #include "YQLayoutBox.moc" YQLayoutBox(YWidget *parent, YUIDimension dim)
Constructor.
virtual ~YQLayoutBox()
Destructor.
virtual void setEnabled(bool enabled)
Set enabled/disabled state.
void ensureChildrenVisible()
Go through the (direct) YWidget children list and make sure the corresponding QWidget is visible...
virtual void moveChild(YWidget *child, int newX, int newY)
Move a child widget to a new position.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.