Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jared2020 committed Jun 26, 2023
1 parent 1118734 commit e6d3111
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/TaoQuick/Qml/CusConfig.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QtObject {
imagePathPrefix = taoQuickImportPath + "TaoQuick/Images/"
shaderPath = taoQuickImportPath + "TaoQuick/Qml/Basic/"
}
currentTheme = 1
currentTheme = 0
}
property color themeColor
property color backgroundColor
Expand Down
18 changes: 3 additions & 15 deletions src/TaoQuick/Qml/CusTable/CusTableHeader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Item {
Rectangle {
id: header0
color: CusConfig.controlColor
width: widthList[0]
width: widthList ? widthList[0] : 0
height: CusConfig.fixedHeight
visible: width > 0
CusCheckBox {
Expand Down Expand Up @@ -84,9 +84,9 @@ Item {
Repeater {
model: headerRoles
Rectangle {
x: xList[index + 1]
x: xList ? xList[index + 1] : 0
height: CusConfig.fixedHeight
width: widthList[index + 1]
width: widthList ? widthList[index + 1] : 0
color: CusConfig.controlColor
CusLabel {
anchors.fill: parent
Expand Down Expand Up @@ -171,25 +171,13 @@ Item {
return
}
var wList = widthList
// if (index === widthList.length - 2) {
// if (validWidth(wList[index] + xOffset) && validWidth(wList[index + 1] - xOffset)) {
// isOut = false
// wList[index] += xOffset
// wList[index + 1] -= xOffset
// widthList = wList
// } else {
// isOut = true
// }

// } else {
if (validWidth(wList[index] + xOffset) ) {
isOut = false
wList[index] += xOffset
widthList = wList
} else {
isOut = true
}
// }
}
}
}
Expand Down

0 comments on commit e6d3111

Please sign in to comment.