aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-15 18:16:01 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-19 16:52:53 +0000
commita7fafb16931792be3d57ee41b1afc46a1350c5f8 (patch)
treec8542151302c3523b7867c612ef3f612a95e01c6 /tests
parent3ab62aed45e32120ba10ec972b92b5dcc79e527d (diff)
Docs: Containers group
Change-Id: I5eb80f21edb50413b33a96b934466964e56462aa Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-frame.qml14
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-groupbox.qml15
-rw-r--r--tests/auto/snippets/data/qtlabscontrols-toolbar.qml18
3 files changed, 47 insertions, 0 deletions
diff --git a/tests/auto/snippets/data/qtlabscontrols-frame.qml b/tests/auto/snippets/data/qtlabscontrols-frame.qml
new file mode 100644
index 00000000..123f391c
--- /dev/null
+++ b/tests/auto/snippets/data/qtlabscontrols-frame.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+import QtQuick.Layouts 1.0
+import Qt.labs.controls 1.0
+
+//! [1]
+Frame {
+ ColumnLayout {
+ anchors.fill: parent
+ CheckBox { text: qsTr("E-mail") }
+ CheckBox { text: qsTr("Calendar") }
+ CheckBox { text: qsTr("Contacts") }
+ }
+}
+//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-groupbox.qml b/tests/auto/snippets/data/qtlabscontrols-groupbox.qml
new file mode 100644
index 00000000..e62dafd1
--- /dev/null
+++ b/tests/auto/snippets/data/qtlabscontrols-groupbox.qml
@@ -0,0 +1,15 @@
+import QtQuick 2.0
+import QtQuick.Layouts 1.0
+import Qt.labs.controls 1.0
+
+//! [1]
+GroupBox {
+ title: qsTr("Synchronize")
+ ColumnLayout {
+ anchors.fill: parent
+ CheckBox { text: qsTr("E-mail") }
+ CheckBox { text: qsTr("Calendar") }
+ CheckBox { text: qsTr("Contacts") }
+ }
+}
+//! [1]
diff --git a/tests/auto/snippets/data/qtlabscontrols-toolbar.qml b/tests/auto/snippets/data/qtlabscontrols-toolbar.qml
new file mode 100644
index 00000000..305321d3
--- /dev/null
+++ b/tests/auto/snippets/data/qtlabscontrols-toolbar.qml
@@ -0,0 +1,18 @@
+import QtQuick 2.0
+import QtQuick.Layouts 1.0
+import Qt.labs.controls 1.0
+
+ToolBar {
+ RowLayout {
+ anchors.fill: parent
+ ToolButton {
+ text: qsTr("\u25C0 Qt")
+ onClicked: stack.pop()
+ }
+ Item { Layout.fillWidth: true }
+ Switch {
+ checked: true
+ text: qsTr("Notifications")
+ }
+ }
+}