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