diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-05-16 06:54:55 +0200 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-05-17 00:02:31 +0200 |
| commit | 78d2cec488f8ab4ab45433ae9a9039f9cb7a5771 (patch) | |
| tree | f59c7b42e7b8650a174c61c618adc46a4bda5576 /src/quick/doc/snippets/qml/windowActiveAttached.qml | |
| parent | f1e7e1c3987b905157a1b9b418ea2649100eb390 (diff) | |
doc: Make Window snippets testable; remove import versions
Pick-to: 6.2 6.5
Change-Id: I35ba013152628591d016c632828a1c4e64cf5978
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'src/quick/doc/snippets/qml/windowActiveAttached.qml')
| -rw-r--r-- | src/quick/doc/snippets/qml/windowActiveAttached.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quick/doc/snippets/qml/windowActiveAttached.qml b/src/quick/doc/snippets/qml/windowActiveAttached.qml new file mode 100644 index 0000000000..791091ef82 --- /dev/null +++ b/src/quick/doc/snippets/qml/windowActiveAttached.qml @@ -0,0 +1,10 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +//![entire] +import QtQuick + +Text { + text: Window.active ? "active" : "inactive" +} +//![entire] |
