mainItemLayout needed for updateLayoutParameters()

Change-Id: Ic1d53f2dc479b36097b39f550d52e20810e44307
CCBUG:345089
This commit is contained in:
Marco Martin 2015-03-12 16:46:41 +01:00
parent 80d5a6fdda
commit 01590d8fbc

View File

@ -337,7 +337,9 @@ void DialogPrivate::updateMinimumWidth()
q->contentItem()->setWidth(qMax(q->width(), minimumWidth));
q->setWidth(qMax(q->width(), minimumWidth));
hintsCommitTimer.start();
if (mainItemLayout) {
hintsCommitTimer.start();
}
}
void DialogPrivate::updateMinimumHeight()
@ -363,7 +365,9 @@ void DialogPrivate::updateMinimumHeight()
q->contentItem()->setHeight(qMax(q->height(), minimumHeight));
q->setHeight(qMax(q->height(), minimumHeight));
hintsCommitTimer.start();
if (mainItemLayout) {
hintsCommitTimer.start();
}
}
void DialogPrivate::updateMaximumWidth()
@ -385,7 +389,9 @@ void DialogPrivate::updateMaximumWidth()
q->contentItem()->setWidth(qMax(q->width(), maximumWidth));
q->setWidth(qMax(q->width(), maximumWidth));
hintsCommitTimer.start();
if (mainItemLayout) {
hintsCommitTimer.start();
}
}
void DialogPrivate::updateMaximumHeight()
@ -407,7 +413,9 @@ void DialogPrivate::updateMaximumHeight()
q->contentItem()->setHeight(qMax(q->height(), maximumHeight));
q->setHeight(qMin(q->height(), maximumHeight));
hintsCommitTimer.start();
if (mainItemLayout) {
hintsCommitTimer.start();
}
}
void DialogPrivate::updateLayoutParameters()