From 3f9bf5a6ab428b589d233dbea4c1e8279d01d6b8 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 9 Oct 2017 16:34:38 +0200 Subject: Doc: fix Action snippets These actions should be checkable. Task-number: QTBUG-63674 Change-Id: If24f00951dc3959df27482fbad844ebeb723b37d Reviewed-by: Mitch Curtis --- src/quicktemplates2/qquickactiongroup.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/quicktemplates2/qquickactiongroup.cpp b/src/quicktemplates2/qquickactiongroup.cpp index 92dda52b..64895689 100644 --- a/src/quicktemplates2/qquickactiongroup.cpp +++ b/src/quicktemplates2/qquickactiongroup.cpp @@ -68,14 +68,17 @@ QT_BEGIN_NAMESPACE Action { checked: true + checkable: true text: qsTr("Left") } Action { + checkable: true text: qsTr("Center") } Action { + checkable: true text: qsTr("Right") } } @@ -89,16 +92,19 @@ QT_BEGIN_NAMESPACE Action { checked: true + checkable: true text: qsTr("Left") ActionGroup.group: alignmentGroup } Action { + checkable: true text: qsTr("Center") ActionGroup.group: alignmentGroup } Action { + checkable: true text: qsTr("Right") ActionGroup.group: alignmentGroup } -- cgit v1.2.3