move the dialog on resize only it it waasn't the user resizing it manually

svn path=/trunk/KDE/kdelibs/; revision=1112886
This commit is contained in:
Marco Martin 2010-04-09 12:26:01 +00:00
parent 3818bc13e6
commit ea1e8d4b93

View File

@ -568,6 +568,7 @@ void Dialog::resizeEvent(QResizeEvent *event)
d->view->centerOn(graphicsWidget);
}
if (d->resizeStartCorner == -1) {
Plasma::Applet *applet = d->applet();
if (applet && !event->oldSize().isEmpty()) {
Plasma::Corona *corona = qobject_cast<Plasma::Corona *>(applet->scene());
@ -581,6 +582,7 @@ void Dialog::resizeEvent(QResizeEvent *event)
}
}
}
}
}
void DialogPrivate::updateResizeCorners()