filter also GraphicsSceneMove when synchronizing the view
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=843661
This commit is contained in:
parent
a2d36c8844
commit
b2fc5a95f2
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user