aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/templates
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-03-31 16:58:08 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-04-11 19:26:11 +0000
commitb663020c9a60704dc53014522a3faa23892280a0 (patch)
tree80dd4f47910ce2313491d19167f3dfb94ea9d9e5 /src/imports/templates
parent1acb34a40ea0fbc0c0730cdc81dcfd46bdeb4ef7 (diff)
Add RadioDelegate
RadioDelegate is an item delegate that is used in lists, and can be checked and unchecked. It derives from QQuickItemDelegate and hence has background press effects. The order of the indicator and text is reversed (compared to RadioButton) to reflect what is most commonly seen on mobile. Change-Id: I143ee9a30cd8ce1d624354f4cb981c41dfddc2d2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/templates')
-rw-r--r--src/imports/templates/qtquicktemplatesplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/templates/qtquicktemplatesplugin.cpp b/src/imports/templates/qtquicktemplatesplugin.cpp
index 26d71f0e..7959bc34 100644
--- a/src/imports/templates/qtquicktemplatesplugin.cpp
+++ b/src/imports/templates/qtquicktemplatesplugin.cpp
@@ -60,6 +60,7 @@
#include <QtQuickTemplates/private/qquickpopup_p.h>
#include <QtQuickTemplates/private/qquickprogressbar_p.h>
#include <QtQuickTemplates/private/qquickradiobutton_p.h>
+#include <QtQuickTemplates/private/qquickradiodelegate_p.h>
#include <QtQuickTemplates/private/qquickrangeslider_p.h>
#include <QtQuickTemplates/private/qquickscrollbar_p.h>
#include <QtQuickTemplates/private/qquickscrollindicator_p.h>
@@ -129,6 +130,7 @@ void QtQuickTemplatesPlugin::registerTypes(const char *uri)
qmlRegisterType<QQuickPopup>(uri, 1, 0, "Popup");
qmlRegisterType<QQuickProgressBar>(uri, 1, 0, "ProgressBar");
qmlRegisterType<QQuickRadioButton>(uri, 1, 0, "RadioButton");
+ qmlRegisterType<QQuickRadioDelegate>(uri, 1, 0, "RadioDelegate");
qmlRegisterType<QQuickRangeSlider>(uri, 1, 0, "RangeSlider");
qmlRegisterType<QQuickRangeSliderNode>();
qmlRegisterType<QQuickScrollBar>(uri, 1, 0, "ScrollBar");