aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/templates/qquickapplicationwindow.cpp8
-rw-r--r--src/templates/qquickpage.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/templates/qquickapplicationwindow.cpp b/src/templates/qquickapplicationwindow.cpp
index 43d51030..d9a0097b 100644
--- a/src/templates/qquickapplicationwindow.cpp
+++ b/src/templates/qquickapplicationwindow.cpp
@@ -343,9 +343,9 @@ void QQuickApplicationWindow::setHeader(QQuickItem *header)
toolBar->setPosition(QQuickToolBar::Header);
else if (QQuickTabBar *tabBar = qobject_cast<QQuickTabBar *>(header))
tabBar->setPosition(QQuickTabBar::Header);
- if (isComponentComplete())
- d->relayout();
}
+ if (isComponentComplete())
+ d->relayout();
emit headerChanged();
}
@@ -389,9 +389,9 @@ void QQuickApplicationWindow::setFooter(QQuickItem *footer)
toolBar->setPosition(QQuickToolBar::Footer);
else if (QQuickTabBar *tabBar = qobject_cast<QQuickTabBar *>(footer))
tabBar->setPosition(QQuickTabBar::Footer);
- if (isComponentComplete())
- d->relayout();
}
+ if (isComponentComplete())
+ d->relayout();
emit footerChanged();
}
diff --git a/src/templates/qquickpage.cpp b/src/templates/qquickpage.cpp
index 98b71724..8e0b542f 100644
--- a/src/templates/qquickpage.cpp
+++ b/src/templates/qquickpage.cpp
@@ -200,9 +200,9 @@ void QQuickPage::setHeader(QQuickItem *header)
toolBar->setPosition(QQuickToolBar::Header);
else if (QQuickTabBar *tabBar = qobject_cast<QQuickTabBar *>(header))
tabBar->setPosition(QQuickTabBar::Header);
- if (isComponentComplete())
- d->relayout();
}
+ if (isComponentComplete())
+ d->relayout();
emit headerChanged();
}
@@ -246,9 +246,9 @@ void QQuickPage::setFooter(QQuickItem *footer)
toolBar->setPosition(QQuickToolBar::Footer);
else if (QQuickTabBar *tabBar = qobject_cast<QQuickTabBar *>(footer))
tabBar->setPosition(QQuickTabBar::Footer);
- if (isComponentComplete())
- d->relayout();
}
+ if (isComponentComplete())
+ d->relayout();
emit footerChanged();
}