aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/doc/snippets/testApp/MyModule/MyButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmltest/doc/snippets/testApp/MyModule/MyButton.qml')
-rw-r--r--src/qmltest/doc/snippets/testApp/MyModule/MyButton.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qmltest/doc/snippets/testApp/MyModule/MyButton.qml b/src/qmltest/doc/snippets/testApp/MyModule/MyButton.qml
new file mode 100644
index 0000000000..47e32c3b6c
--- /dev/null
+++ b/src/qmltest/doc/snippets/testApp/MyModule/MyButton.qml
@@ -0,0 +1,12 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+//! [define]
+import QtQuick
+import QtQuick.Controls
+
+Button {
+ width: 50
+ height: 50
+ onClicked: width = 100
+}
+//! [define]