Fix QML warnings in TinyButtonStyle.qml

This commit is contained in:
Martchus 2020-04-27 23:47:52 +02:00
parent 364326ddf6
commit a2695311d4
1 changed files with 3 additions and 3 deletions

View File

@ -136,14 +136,14 @@ QtQuickControlStyle.ButtonStyle {
return "AllBorders"
}
var borders = new Array()
if (control.x == 0) {
var borders = []
if (control.x === 0) {
borders.push("LeftBorder")
shadow.anchors.leftMargin = 0
} else {
shadow.anchors.leftMargin = -1
}
if (control.y == 0) {
if (control.y === 0) {
borders.push("TopBorder")
shadow.anchors.topMargin = 0
} else {