Tell the layouts who they are doing the layout for.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=718010
This commit is contained in:
parent
c982fdde3b
commit
455d9faf55
@ -407,13 +407,17 @@ void Containment::setFormFactor(FormFactor formFactor)
|
|||||||
|
|
||||||
switch (d->formFactor) {
|
switch (d->formFactor) {
|
||||||
case Planar:
|
case Planar:
|
||||||
d->layout = new FreeLayout;
|
d->layout = new FreeLayout(this);
|
||||||
break;
|
break;
|
||||||
case Horizontal:
|
case Horizontal:
|
||||||
d->layout = new BoxLayout(BoxLayout::LeftToRight);
|
d->layout = new BoxLayout(BoxLayout::LeftToRight, this);
|
||||||
|
d->layout->setMargin(0);
|
||||||
|
d->layout->setSpacing(0);
|
||||||
break;
|
break;
|
||||||
case Vertical:
|
case Vertical:
|
||||||
d->layout = new BoxLayout(BoxLayout::TopToBottom);
|
d->layout = new BoxLayout(BoxLayout::TopToBottom, this);
|
||||||
|
d->layout->setMargin(0);
|
||||||
|
d->layout->setSpacing(0);
|
||||||
break;
|
break;
|
||||||
case MediaCenter:
|
case MediaCenter:
|
||||||
//FIXME: need a layout type here!
|
//FIXME: need a layout type here!
|
||||||
|
Loading…
Reference in New Issue
Block a user