Fixing position of filter item

This commit is contained in:
Adsooi 2024-09-16 23:41:34 +02:00
parent ef14db8bbb
commit 51807a80d0
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,7 @@ Item {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
anchors.rightMargin: 5
placeholderText: qsTr("Filter...") placeholderText: qsTr("Filter...")
category: "all" category: "all"
} }

View file

@ -102,7 +102,7 @@ Item {
anchors.leftMargin: icon == "" ? 0 : 5 anchors.leftMargin: icon == "" ? 0 : 5
anchors.top: parent.top anchors.top: parent.top
height: parent.height height: parent.height
width: Math.max(85, implicitWidth) width: visible ? Math.max(85, implicitWidth) : 0
verticalAlignment: TextInput.AlignVCenter verticalAlignment: TextInput.AlignVCenter
//color: sysPalette.windowText //color: sysPalette.windowText
text: visible ? qsTranslate("control", "%1: ").arg(control.label) : "" text: visible ? qsTranslate("control", "%1: ").arg(control.label) : ""