forked from qt-creator/qt-creator
QmlDesigner: Fix test data for StyleMerger
* This seems be the correct expected outcome. * Minor fix in SwitchTemplate Change-Id: I5de04d943d3522a37ac1664157f384594ddddcde Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Michael Brüning
parent
96a511c979
commit
e5d892c74a
@@ -22,8 +22,6 @@ T.Button {
|
||||
|
||||
Rectangle {
|
||||
id: buttonNormal
|
||||
x: 286
|
||||
y: 62
|
||||
width: 100
|
||||
height: 60
|
||||
color: "#d4d4d4"
|
||||
@@ -38,7 +36,6 @@ T.Button {
|
||||
color: "#808080"
|
||||
text: control.text
|
||||
elide: Text.ElideRight
|
||||
anchors.fill: parent
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
@@ -46,8 +43,6 @@ T.Button {
|
||||
|
||||
Rectangle {
|
||||
id: buttonPressed
|
||||
x: 123
|
||||
y: 62
|
||||
width: 100
|
||||
height: 60
|
||||
color: "#69b5ec"
|
||||
@@ -62,7 +57,6 @@ T.Button {
|
||||
color: "#000000"
|
||||
text: control.text
|
||||
elide: Text.ElideRight
|
||||
anchors.fill: parent
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
@@ -22,55 +22,44 @@ T.Button {
|
||||
|
||||
Image {
|
||||
id: buttonNormal
|
||||
color: "#d4d4d4"
|
||||
x: 14
|
||||
y: 5
|
||||
width: 100 //Bit of black magic to define the default size
|
||||
width: 100
|
||||
height: 40
|
||||
|
||||
border.color: "gray"
|
||||
border.width: 1
|
||||
radius: 2
|
||||
anchors.fill: parent //binding has to be preserved
|
||||
anchors.fill: parent
|
||||
source: "assets/buttonNormal.png"
|
||||
|
||||
Text {
|
||||
id: normalText
|
||||
x: 58
|
||||
y: 50 //id only required to preserve binding
|
||||
text: control.text //binding has to be preserved
|
||||
//anchors.fill: parent
|
||||
color: "#BBBBBB"
|
||||
font.letterSpacing: 0.594
|
||||
y: 50
|
||||
color: "#bbbbbb"
|
||||
text: control.text
|
||||
elide: Text.ElideRight
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
font.pixelSize: 24
|
||||
font.letterSpacing: 0.594
|
||||
}
|
||||
}
|
||||
|
||||
Image {
|
||||
id: buttonPressed
|
||||
x: 290
|
||||
y: 5
|
||||
width: 100 //Bit of black magic to define the default size
|
||||
width: 100
|
||||
height: 40
|
||||
anchors.fill: parent
|
||||
source: "assets/buttonPressed.png"
|
||||
|
||||
border.color: "gray"
|
||||
border.width: 1
|
||||
radius: 2
|
||||
anchors.fill: parent //binding has to be preserved
|
||||
|
||||
Text {
|
||||
id: pressedText //id only required to preserve binding
|
||||
id: pressedText
|
||||
x: 58
|
||||
y: 50
|
||||
text: control.text //binding has to be preserved
|
||||
//anchors.fill: parent
|
||||
color: "#E1E1E1"
|
||||
|
||||
font.letterSpacing: 0.594
|
||||
color: "#e1e1e1"
|
||||
text: control.text
|
||||
elide: Text.ElideRight
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
font.pixelSize: 24
|
||||
font.letterSpacing: 0.594
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
contentItem: Item {}
|
||||
|
@@ -40,9 +40,9 @@ T.Switch {
|
||||
color: "#c2c2c2"
|
||||
border.color: "#808080"
|
||||
anchors.fill: parent
|
||||
|
||||
Text {
|
||||
text: "background"
|
||||
id: switchBackgroundText
|
||||
text: control.text
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 12
|
||||
|
@@ -28,12 +28,6 @@ T.Switch {
|
||||
text: control.text // has to be preserved
|
||||
anchors.rightMargin: 12 * 5
|
||||
}
|
||||
Rectangle {
|
||||
id: nonSenseRectangle
|
||||
width: 5 * 12.0
|
||||
height: 6 * 49.0
|
||||
color: "#ff0000"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user