26 #define YUILogComponent "qt-ui"
27 #include <yui/YUILog.h>
39 const string & initialLabel )
40 : QGroupBox( (QWidget *) parent->widgetRep() )
41 , YFrame( parent, initialLabel )
43 setWidgetRep (
this );
44 QGroupBox::setTitle( fromUTF8( label() ) );
56 QGroupBox::setEnabled( enabled );
57 YWidget::setEnabled( enabled );
64 resize( newWidth, newHeight );
68 QMargins margins = contentsMargins();
69 int newChildWidth = newWidth - margins.left() - margins.right();
70 int newChildHeight = newHeight - margins.bottom() - margins.top();
72 firstChild()->setSize( newChildWidth, newChildHeight );
74 QWidget * qChild = (QWidget *) firstChild()->widgetRep();
75 qChild->move( margins.left(), margins.top() );
83 YFrame::setLabel( newLabel );
84 QGroupBox::setTitle( fromUTF8( label() ) );
90 int preferredWidth = hasChildren() ? firstChild()->preferredWidth() : 0;
91 QMargins margins = contentsMargins();
104 int preferredHeight = hasChildren() ? firstChild()->preferredHeight() : 0;
105 QMargins margins = contentsMargins();