and now panels set themselves properly again
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737021
This commit is contained in:
parent
58d7e745f9
commit
206b07ece1
9
view.cpp
9
view.cpp
|
@ -66,8 +66,8 @@ View::View(Containment *containment, QWidget *parent)
|
||||||
: QGraphicsView(parent),
|
: QGraphicsView(parent),
|
||||||
d(new Private)
|
d(new Private)
|
||||||
{
|
{
|
||||||
d->containment = containment;
|
|
||||||
setScene(containment->scene());
|
setScene(containment->scene());
|
||||||
|
setContainment(containment);
|
||||||
}
|
}
|
||||||
|
|
||||||
View::~View()
|
View::~View()
|
||||||
|
@ -101,7 +101,7 @@ void View::setContainment(Containment *containment)
|
||||||
disconnect(d->containment, SIGNAL(geometryChanged()), this, SLOT(updateSceneRect()));
|
disconnect(d->containment, SIGNAL(geometryChanged()), this, SLOT(updateSceneRect()));
|
||||||
d->containment = containment;
|
d->containment = containment;
|
||||||
d->screen = containment->screen();
|
d->screen = containment->screen();
|
||||||
setSceneRect(containment->geometry());
|
updateSceneRect();
|
||||||
connect(containment, SIGNAL(geometryChanged()), this, SLOT(updateSceneRect()));
|
connect(containment, SIGNAL(geometryChanged()), this, SLOT(updateSceneRect()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,6 +120,11 @@ bool View::drawWallpaper() const
|
||||||
return d->drawWallpaper;
|
return d->drawWallpaper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void View::updateSceneRect()
|
||||||
|
{
|
||||||
|
setSceneRect(d->containment->sceneBoundingRect());
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Plasma
|
} // namespace Plasma
|
||||||
|
|
||||||
#include "view.moc"
|
#include "view.moc"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user