Remove minimum size test from PC3 Button test
Also add disabled buttons to the PC3 Button test The minimum size test didn't make any sense. You don't normally set the implicitWidth of a button to Layout.minimumWidth in a Layout.
This commit is contained in:
parent
34bed4571c
commit
54069ee94c
|
@ -66,6 +66,15 @@ ComponentBase {
|
|||
Layout.maximumWidth: 150
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: "disabled icon + text"
|
||||
}
|
||||
|
||||
PlasmaComponents.Button {
|
||||
icon.name: "start-here-kde-plasma"
|
||||
text: "test"
|
||||
enabled: false
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: "button (with or without icon) and textfield should have the same height"
|
||||
|
@ -83,26 +92,6 @@ ComponentBase {
|
|||
}
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: "minimum width property. Should be two letters wide"
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
PlasmaComponents.Button {
|
||||
text: "AA"
|
||||
implicitWidth: Layout.minimumWidth
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
icon.name: "application-menu"
|
||||
text: "AA"
|
||||
implicitWidth: Layout.minimumWidth
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
icon.name: "application-menu"
|
||||
implicitWidth: Layout.minimumWidth
|
||||
}
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: "Display property"
|
||||
}
|
||||
|
@ -186,6 +175,16 @@ ComponentBase {
|
|||
flat: true
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: "disabled icon + text"
|
||||
}
|
||||
|
||||
PlasmaComponents.Button {
|
||||
icon.name: "start-here-kde-plasma"
|
||||
text: "test"
|
||||
flat: true
|
||||
enabled: false
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: "button (with or without icon) and textfield should have the same height"
|
||||
|
@ -205,29 +204,6 @@ ComponentBase {
|
|||
}
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: "minimum width property. Should be two letters wide"
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
PlasmaComponents.Button {
|
||||
text: "AA"
|
||||
implicitWidth: Layout.minimumWidth
|
||||
flat: true
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
icon.name: "application-menu"
|
||||
text: "AA"
|
||||
implicitWidth: Layout.minimumWidth
|
||||
flat: true
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
icon.name: "application-menu"
|
||||
implicitWidth: Layout.minimumWidth
|
||||
flat: true
|
||||
}
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: "Display property"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user