libyui/libyui-qt — pull request #9 by anaselli (2012-10-28 17:31:30+00:00)
Title: Fixed YAlignment::setBackgroundPixmap

following code does not work, background is ignored:
int main( int argc, char **argv )
{
YDialog * dialog = YUI::widgetFactory()->createPopupDialog();
YFrame* frame = YUI::widgetFactory()->createFrame(dialog, "Test frame");
YLayoutBox * hbox = YUI::widgetFactory()->createHBox(frame);
YFrame* lframe = YUI::widgetFactory()->createFrame(hbox, "Left frame");
YFrame* rframe = YUI::widgetFactory()->createFrame(hbox, "Right frame");
YLayoutBox * vbox_rframe = YUI::widgetFactory()->createVBox( rframe );
YLayoutBox * vbox = YUI::widgetFactory()->createVBox( lframe );
lframe->setWeight(YD_HORIZ, 25);
rframe->setWeight(YD_HORIZ, 75);
YAlignment *align = YUI::widgetFactory()->createAlignment( vbox, YAlignBegin, YAlignCenter);
align->setBackgroundPixmap("/usr/share/indexhtml/images/logo_mageia.png");
YUI::widgetFactory()->createLabel ( align, "Hello, World!" );
YEvent* event = dialog->waitForEvent();
dialog->destroy();
}

My patch fixed it. Behaviour between gtk and qt is different though (adding my gtk patch).