From e07960f8c3ff328d4b6ed20231a136d02160f45d Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Thu, 8 Apr 2021 13:35:58 +0200 Subject: [PATCH] Add orange border to see the actual borders --- ScreenPlayWallpaper/Test.qml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ScreenPlayWallpaper/Test.qml b/ScreenPlayWallpaper/Test.qml index 6cca9d96..44291653 100644 --- a/ScreenPlayWallpaper/Test.qml +++ b/ScreenPlayWallpaper/Test.qml @@ -8,6 +8,8 @@ Rectangle { id: root anchors.fill: parent color: Material.color(Material.Grey, Material.Shade800) + border.width: 10 + border.color: "orange" property int attStrength: 800000 //Emitter @@ -25,7 +27,7 @@ Rectangle { id: ma anchors.fill: parent preventStealing: true - propagateComposedEvents:true + propagateComposedEvents: true hoverEnabled: true Component.onCompleted: { attractor.pointX = parent.width * .5 @@ -54,7 +56,7 @@ Rectangle { x: attractor.pointX height: width radius: width - + z: 99 color: "orange" } @@ -125,16 +127,15 @@ Rectangle { horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter wrapMode: Text.WordWrap - anchors.centerIn: parent + anchors.centerIn: parent anchors.margins: 10 color: "white" } - Row { anchors { horizontalCenter: parent.horizontalCenter - top:name.bottom + top: name.bottom topMargin: 20 } spacing: 20 @@ -142,9 +143,9 @@ Rectangle { highlighted: true onClicked: { - focus =false - focus =true - print("Button Clicked!" ) + focus = false + focus = true + print("Button Clicked!") txtButtonConter.counter = txtButtonConter.counter - 1 } text: qsTr("Click me! - 1") @@ -153,24 +154,23 @@ Rectangle { highlighted: true onClicked: { - focus =false - focus =true - print("Button Clicked!" ) + focus = false + focus = true + print("Button Clicked!") txtButtonConter.counter = txtButtonConter.counter } text: qsTr("Click me!") } Button { highlighted: true - focusPolicy: Qt.ClickFocus + focusPolicy: Qt.ClickFocus onClicked: { - print("Button Clicked!" ) + print("Button Clicked!") txtButtonConter.counter = txtButtonConter.counter + 1 } text: qsTr("Click me! +1") } - } WebView {