aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickpage.cpp')
-rw-r--r--src/quicktemplates2/qquickpage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quicktemplates2/qquickpage.cpp b/src/quicktemplates2/qquickpage.cpp
index 93196c4c..56034297 100644
--- a/src/quicktemplates2/qquickpage.cpp
+++ b/src/quicktemplates2/qquickpage.cpp
@@ -61,7 +61,7 @@ QT_BEGIN_NAMESPACE
toolbar header and an application-wide tabbar footer.
\qml
- import QtQuick.Controls 2.1
+ import QtQuick.Controls 2.12
ApplicationWindow {
visible: true
@@ -344,7 +344,7 @@ void QQuickPage::setFooter(QQuickItem *footer)
if (d->footer) {
QQuickItemPrivate::get(d->footer)->removeItemChangeListener(d, LayoutChanges);
- footer->setParentItem(nullptr);
+ d->footer->setParentItem(nullptr);
}
d->footer = footer;
if (footer) {