diff options
Diffstat (limited to 'tests/auto/snippets')
-rw-r--r-- | tests/auto/snippets/data/qtlabscontrols-frame.qml | 14 | ||||
-rw-r--r-- | tests/auto/snippets/data/qtlabscontrols-groupbox.qml | 15 | ||||
-rw-r--r-- | tests/auto/snippets/data/qtlabscontrols-toolbar.qml | 18 |
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") + } + } +} |