Skip to content

Commit

Permalink
fix: incorrect hover area for SearchEdit
Browse files Browse the repository at this point in the history
Adding an control as SearchEdit's parent.
  • Loading branch information
18202781743 committed Apr 12, 2024
1 parent 829df4c commit e3f8ac0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions qml/windowed/BottomBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ Control {
}
}

SearchEdit {
id: searchEdit

// TODO dtk's bug, ColorSelector's control is wrong for SearchEdit.
Control {
Layout.preferredWidth: 360
Layout.alignment: Qt.AlignHCenter
Layout.preferredHeight: 30
contentItem: SearchEdit {
id: searchEdit

placeholder: qsTr("Search")
onTextChanged: {
console.log(text)
Expand Down Expand Up @@ -71,6 +73,7 @@ Control {
}

backgroundColor: searchEdit.editting ? edittingPalette : nomalPalette
}
}

ToolButton {
Expand Down

0 comments on commit e3f8ac0

Please sign in to comment.