From bc514fba81b67afb41ee91ea917352ad674630a5 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 20 Mar 2017 10:19:36 +0100 Subject: Fix AbstractButton 2.2 registration qmlRegisterRevision() registers a nameless type, so using it would make AbstractButton throw confusingly formatted warnings: QML : instead of QML AbstractButton: Change-Id: I6b51824ad019ed9451079cf8a2595e908ef8187e Reviewed-by: Mitch Curtis --- src/imports/templates/qtquicktemplates2plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/imports/templates/qtquicktemplates2plugin.cpp b/src/imports/templates/qtquicktemplates2plugin.cpp index 2486012b..8cc760a8 100644 --- a/src/imports/templates/qtquicktemplates2plugin.cpp +++ b/src/imports/templates/qtquicktemplates2plugin.cpp @@ -231,7 +231,7 @@ void QtQuickTemplates2Plugin::registerTypes(const char *uri) #endif // QtQuick.Templates 2.2 (new types and revisions in Qt 5.9) - qmlRegisterRevision(uri, 2, 2); + qmlRegisterType(uri, 2, 2, "AbstractButton"); qmlRegisterType(uri, 2, 2, "ComboBox"); qmlRegisterType(uri, 2, 2, "DelayButton"); qmlRegisterType(uri, 2, 2, "Dial"); -- cgit v1.2.3