diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-02-27 13:15:46 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-03-15 21:44:12 +0000 |
commit | ef885485a19f0e70273650d88312af0195c32920 (patch) | |
tree | 48ca030228c456a53e08c45df97dee0944a7d2c8 /src/imports/templates | |
parent | e1add88186ed3ace78c7f6c1e3d683285a1a51fa (diff) |
Add SwipeDelegate
SwipeDelegate presents a view item that can be swiped left or right to
expose more options or information. It is used as a delegate in views
such as ListView.
Change-Id: I7533a2b223f652993b6cee730930ea6dc125c869
Task-number: QTBUG-51610
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/templates')
-rw-r--r-- | src/imports/templates/qtlabstemplatesplugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/templates/qtlabstemplatesplugin.cpp b/src/imports/templates/qtlabstemplatesplugin.cpp index bdf35802..ab50bcbc 100644 --- a/src/imports/templates/qtlabstemplatesplugin.cpp +++ b/src/imports/templates/qtlabstemplatesplugin.cpp @@ -65,6 +65,7 @@ #include <QtLabsTemplates/private/qquickslider_p.h> #include <QtLabsTemplates/private/qquickspinbox_p.h> #include <QtLabsTemplates/private/qquickstackview_p.h> +#include <QtLabsTemplates/private/qquickswipedelegate_p.h> #include <QtLabsTemplates/private/qquickswipeview_p.h> #include <QtLabsTemplates/private/qquickswitch_p.h> #include <QtLabsTemplates/private/qquicktabbar_p.h> @@ -133,6 +134,8 @@ void QtLabsTemplatesPlugin::registerTypes(const char *uri) qmlRegisterType<QQuickSpinBox>(uri, 1, 0, "SpinBox"); qmlRegisterType<QQuickSpinButton>(); qmlRegisterType<QQuickStackView>(uri, 1, 0, "StackView"); + qmlRegisterType<QQuickSwipeDelegate>(uri, 1, 0, "SwipeDelegate"); + qmlRegisterType<QQuickSwipeExposure>(); qmlRegisterType<QQuickSwipeViewAttached>(); qmlRegisterType<QQuickSwipeView>(uri, 1, 0, "SwipeView"); qmlRegisterType<QQuickSwitch>(uri, 1, 0, "Switch"); |