now calling addItem when adding an offscreen widget,

otherwise it would need to be called outside the function,
which is not very intuitive


svn path=/trunk/KDE/kdelibs/; revision=1017869
This commit is contained in:
Ana Cecília Martins 2009-08-31 19:06:06 +00:00
parent dc1045b8cb
commit 7830d10905

View File

@ -440,6 +440,10 @@ void Corona::addOffscreenWidget(QGraphicsWidget *widget)
widget->setParentItem(0);
if (!widget->scene()) {
addItem(widget);
}
//search for an empty spot in the topleft quadrant of the scene. each 'slot' is QWIDGETSIZE_MAX
//x QWIDGETSIZE_MAX, so we're guaranteed to never have to move widgets once they're placed here.
int i = 0;