aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/qml/windowPalette.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/doc/snippets/qml/windowPalette.qml')
-rw-r--r--src/quick/doc/snippets/qml/windowPalette.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/doc/snippets/qml/windowPalette.qml b/src/quick/doc/snippets/qml/windowPalette.qml
index 0638213c57..5a9219c638 100644
--- a/src/quick/doc/snippets/qml/windowPalette.qml
+++ b/src/quick/doc/snippets/qml/windowPalette.qml
@@ -17,12 +17,14 @@ Window {
palette.active.window: "peachpuff"
palette.windowText: "brown"
+//![text-item]
Text {
anchors.centerIn: parent
// here we use the Window.active attached property and the Item.palette property
color: Window.active ? palette.active.windowText : palette.inactive.windowText
text: Window.active ? "active" : "inactive"
}
+//![text-item]
Button {
text: "Button"