void draw(Engine &painter) { Label::draw( painter ); Picture goodIcon = GoodHelper::picture( _type ); painter.draw( goodIcon, absoluteRect().lefttop() + Point( 15, 0 ), &absoluteClippingRectRef() ); painter.draw( goodIcon, absoluteRect().lefttop() + Point( 390, 0 ), &absoluteClippingRectRef() ); }
//! draws the element and its children void GroupBox::draw(gfx::Engine& painter ) { if (!visible()) return; if( _d->backgroundImage.isValid() ) { painter.draw( _d->backgroundImage, absoluteRect().UpperLeftCorner, &absoluteClippingRectRef() ); } else { painter.draw( _d->background, absoluteRect().UpperLeftCorner, &absoluteClippingRectRef() ); } Widget::draw( painter ); }