aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/doc/snippets/qtlabscontrols-toolbutton-background.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-22 16:52:10 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-30 15:41:26 +0000
commit53a9c9e2c01199aec3c0848593226f8a3e7d5dee (patch)
tree82dc1480fcd2817da1e206ffd9863021c4b3f107 /src/imports/controls/doc/snippets/qtlabscontrols-toolbutton-background.qml
parent72f3a5a0957e4347f8f3db6d4638866e52a8ab61 (diff)
Move the code snippets to a more logical place
They are part of the documentation, but just auto-tested to ensure that they are actually creatable and don't throw warnings. Therefore the logical place is in the doc/snippets folder instead of somewhere in the tests/ tree. Change-Id: Id79a19890f7457ef277e7434a3fc6b6fb20eaa25 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/doc/snippets/qtlabscontrols-toolbutton-background.qml')
-rw-r--r--src/imports/controls/doc/snippets/qtlabscontrols-toolbutton-background.qml38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/imports/controls/doc/snippets/qtlabscontrols-toolbutton-background.qml b/src/imports/controls/doc/snippets/qtlabscontrols-toolbutton-background.qml
new file mode 100644
index 00000000..62338070
--- /dev/null
+++ b/src/imports/controls/doc/snippets/qtlabscontrols-toolbutton-background.qml
@@ -0,0 +1,38 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Free Documentation License Usage
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file. Please review the following information to ensure
+** the GNU Free Documentation License version 1.3 requirements
+** will be met: http://www.gnu.org/copyleft/fdl.html.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import QtQuick 2.0
+import Qt.labs.controls 1.0
+
+ToolButton {
+ text: "ToolButton"
+ Rectangle {
+ anchors.fill: background
+ color: 'transparent'
+ border.color: 'red'
+ }
+}