when one of the size hints changes, sync again the graphicswidget and the view
svn path=/trunk/KDE/kdelibs/; revision=1112684
This commit is contained in:
parent
5d28ad3e73
commit
861c4c18c3
@ -102,6 +102,8 @@ public:
|
||||
int resizeStartCorner;
|
||||
QTimer *moveTimer;
|
||||
QTimer *adjustViewTimer;
|
||||
QSize oldGraphicsWidgetMinimumSize;
|
||||
QSize oldGraphicsWidgetMaximumSize;
|
||||
Plasma::AspectRatioMode aspectRatioMode;
|
||||
bool resizeChecksWithBorderCheck;
|
||||
};
|
||||
@ -690,8 +692,13 @@ void Dialog::showEvent(QShowEvent * event)
|
||||
d->updateResizeCorners();
|
||||
|
||||
QGraphicsWidget *graphicsWidget = d->graphicsWidgetPtr.data();
|
||||
if (graphicsWidget && d->view && graphicsWidget->size().toSize() != d->view->size()) {
|
||||
if (graphicsWidget &&
|
||||
((d->view && graphicsWidget->size().toSize() != d->view->size()) ||
|
||||
d->oldGraphicsWidgetMinimumSize != graphicsWidget->minimumSize() ||
|
||||
d->oldGraphicsWidgetMaximumSize != graphicsWidget->maximumSize())) {
|
||||
syncToGraphicsWidget();
|
||||
d->oldGraphicsWidgetMinimumSize = graphicsWidget->minimumSize().toSize();
|
||||
d->oldGraphicsWidgetMaximumSize = graphicsWidget->maximumSize().toSize();
|
||||
}
|
||||
|
||||
if (d->view) {
|
||||
|
Loading…
Reference in New Issue
Block a user