From e09a8591990e5281929ca2a7bb180bb3a35556ba Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 24 Oct 2016 16:03:39 +0200 Subject: Popup: add spacing support for Dialog This helps to get the dialog layout right (a separate follow-up commit), because we don't need to mess with the paddings of the header, content, and footer, based on their existence and visibility, but we can also adjust the spacing which gets automatically added between the building blocks when they exist and are visible. Change-Id: Ie8b587eeb9d0fb4a8f42baf957879d40bbd3385c Reviewed-by: Mitch Curtis --- src/imports/templates/qtquicktemplates2plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/imports/templates/qtquicktemplates2plugin.cpp') diff --git a/src/imports/templates/qtquicktemplates2plugin.cpp b/src/imports/templates/qtquicktemplates2plugin.cpp index 3a124860..fb8db27e 100644 --- a/src/imports/templates/qtquicktemplates2plugin.cpp +++ b/src/imports/templates/qtquicktemplates2plugin.cpp @@ -187,6 +187,7 @@ void QtQuickTemplates2Plugin::registerTypes(const char *uri) qmlRegisterType(); qmlRegisterType(uri, 2, 1, "MenuSeparator"); qmlRegisterType(uri, 2, 1, "Page"); + qmlRegisterType(uri, 2, 1, "Popup"); qmlRegisterType(uri, 2, 1, "RangeSlider"); qmlRegisterType(uri, 2, 1, "RoundButton"); qmlRegisterType(uri, 2, 1, "Slider"); -- cgit v1.2.3