From 108f4829e43ed32cf1c6f925364d443c10bd7f80 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 4 Jan 2018 11:23:22 +0100 Subject: Fix qmlRegisterType() for RoundButton RoundButton was a new type in QQC2.1 (Qt 5.8). Even though passing a non-existent revision seems to be harmless, registerTypes() becomes easier to read when we distinguish between new types and new revisions. Change-Id: I682006570f63dd0b2cb2260740fb105619e61a28 Reviewed-by: Mitch Curtis --- src/imports/templates/qtquicktemplates2plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imports/templates/qtquicktemplates2plugin.cpp') diff --git a/src/imports/templates/qtquicktemplates2plugin.cpp b/src/imports/templates/qtquicktemplates2plugin.cpp index 263d7fde..2abdeb6e 100644 --- a/src/imports/templates/qtquicktemplates2plugin.cpp +++ b/src/imports/templates/qtquicktemplates2plugin.cpp @@ -226,7 +226,7 @@ void QtQuickTemplates2Plugin::registerTypes(const char *uri) qmlRegisterType(uri, 2, 1, "Page"); qmlRegisterType(uri, 2, 1, "Popup"); qmlRegisterType(uri, 2, 1, "RangeSlider"); - qmlRegisterType(uri, 2, 1, "RoundButton"); + qmlRegisterType(uri, 2, 1, "RoundButton"); qmlRegisterType(uri, 2, 1, "Slider"); qmlRegisterType(uri, 2, 1, "SpinBox"); qmlRegisterType(uri, 2, 1, "StackView"); -- cgit v1.2.3