1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Add orange border to see the actual borders

This commit is contained in:
Elias Steurer 2021-04-08 13:35:58 +02:00
parent 0492e7c519
commit e07960f8c3

View File

@ -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 {