diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-11-04 13:49:13 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-11-04 14:59:12 +0000 |
commit | 99012cbe810b29e7b1b59eebeccc26e9177d7b5f (patch) | |
tree | ea12ad7c02db2f137ea231942a4fa45830f73fa1 /src/imports | |
parent | 081d6a9dd5d39df7a0d16727b2547285e95b7e80 (diff) |
Expose AbstractButton.
It will be used as the type that ButtonGroup (will be renamed from
ExclusiveGroup) manages.
Change-Id: Iedcf81a33ac8e7acad3e119159791995bc2ce2eb
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/templates/qtlabstemplatesplugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/templates/qtlabstemplatesplugin.cpp b/src/imports/templates/qtlabstemplatesplugin.cpp index 4cc9b20c..5a976aca 100644 --- a/src/imports/templates/qtlabstemplatesplugin.cpp +++ b/src/imports/templates/qtlabstemplatesplugin.cpp @@ -36,6 +36,7 @@ #include <QtQml/qqmlextensionplugin.h> +#include <QtLabsTemplates/private/qquickabstractbutton_p.h> #include <QtLabsTemplates/private/qquickapplicationwindow_p.h> #include <QtLabsTemplates/private/qquickbusyindicator_p.h> #include <QtLabsTemplates/private/qquickbutton_p.h> @@ -79,6 +80,7 @@ public: void QtLabsTemplatesPlugin::registerTypes(const char *uri) { + qmlRegisterType<QQuickAbstractButton>(uri, 1, 0, "AbstractButton"); qmlRegisterType<QQuickApplicationWindow>(uri, 1, 0, "ApplicationWindow"); qmlRegisterType<QQuickBusyIndicator>(uri, 1, 0, "BusyIndicator"); qmlRegisterType<QQuickButton>(uri, 1, 0, "Button"); |