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:
parent
dc1045b8cb
commit
7830d10905
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user