filter also GraphicsSceneMove when synchronizing the view

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=843661
This commit is contained in:
Marco Martin 2008-08-07 14:17:55 +00:00
parent a2d36c8844
commit b2fc5a95f2
2 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,8 @@ QGraphicsWidget *Dialog::graphicsWidget()
bool Dialog::eventFilter(QObject *watched, QEvent *event)
{
if (watched == d->widget && event->type() == QEvent::GraphicsSceneResize) {
if (watched == d->widget && (event->type() == QEvent::GraphicsSceneResize ||
event->type() == QEvent::GraphicsSceneMove)) {
d->adjustView();
}

View File

@ -199,6 +199,7 @@ void PopupApplet::constraintsEvent(Plasma::Constraints constraints)
if (corona) {
corona->addOffscreenWidget(graphicsWidget());
graphicsWidget()->resize(graphicsWidget()->preferredSize());
graphicsWidget()->setMinimumSize(graphicsWidget()->preferredSize());
d->dialog->setGraphicsWidget(graphicsWidget());
}
} else {