From b6dbfe623ab6df58ccb7bf8a922eb853fc10155a Mon Sep 17 00:00:00 2001 From: Yulong Bai Date: Fri, 2 Mar 2018 14:31:36 +0100 Subject: QQuickSlider: add touchDragThreshold property Add touchDragThreshold property for configuring the threshold to initiate a 'drag', i.e. touch move, of the handle of the slider. The mouse 'drag' won't be affected by the property. This property may be also used to configure the drag events stealing priorities of nested draggable items in the future. [ChangeLog][Slider] Added touchDragThreshold property for configuring the threshold to initiate the touch 'drag' of the handle of the slider. The mouse 'drag' won't be affected by the property. Task-number: QTBUG-62784 Change-Id: Ifaeea4653b48c44efbe7e1cb09d399a91359c16a Reviewed-by: Mitch Curtis --- src/imports/templates/qtquicktemplates2plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/imports/templates/qtquicktemplates2plugin.cpp') diff --git a/src/imports/templates/qtquicktemplates2plugin.cpp b/src/imports/templates/qtquicktemplates2plugin.cpp index 09bd2d87..545e2596 100644 --- a/src/imports/templates/qtquicktemplates2plugin.cpp +++ b/src/imports/templates/qtquicktemplates2plugin.cpp @@ -333,6 +333,7 @@ void QtQuickTemplates2Plugin::registerTypes(const char *uri) qmlRegisterType(uri, 2, 5, "DialogButtonBox"); qmlRegisterType(uri, 2, 5, "Control"); qmlRegisterType(uri, 2, 5, "Popup"); + qmlRegisterType(uri, 2, 5, "Slider"); qmlRegisterType(uri, 2, 5, "TextArea"); qmlRegisterType(uri, 2, 5, "TextField"); qmlRegisterType(uri, 2, 5, "ToolTip"); -- cgit v1.2.3