From 9d022b96872636a2898fd6209711c4f96a520a0e Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 6 Sep 2017 15:05:38 +0200 Subject: Register new base class revisions QQuickText & QQuickTextEdit have gained new properties in QtQuick 2.10. Make them available in QQuickLabel and QQuickTextArea, respectively. Change-Id: I5156b683efeedd24b23c18d1c2e2509d3040b647 Reviewed-by: Mitch Curtis --- src/imports/templates/qtquicktemplates2plugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/imports/templates/qtquicktemplates2plugin.cpp b/src/imports/templates/qtquicktemplates2plugin.cpp index a8aafa2c..c3f0cdd4 100644 --- a/src/imports/templates/qtquicktemplates2plugin.cpp +++ b/src/imports/templates/qtquicktemplates2plugin.cpp @@ -313,6 +313,11 @@ void QtQuickTemplates2Plugin::registerTypes(const char *uri) qmlRegisterType(uri, 2, 3, "ScrollIndicator"); qmlRegisterType(uri, 2, 3, "Slider"); qmlRegisterType(uri, 2, 3, "SpinBox"); + + // NOTE: register the latest revisions of all template/control base classes to + // make revisioned properties available to their subclasses (synced with Qt 5.10) + qmlRegisterRevision(uri, 2, 3); + qmlRegisterRevision(uri, 2, 3); } QT_END_NAMESPACE -- cgit v1.2.3