fix search
This commit is contained in:
@@ -26,6 +26,10 @@ Item {
|
|||||||
scrollTimer.restart();
|
scrollTimer.restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function selectCategory(categoryKey: string) {
|
||||||
|
layout.selectCategory(categoryKey);
|
||||||
|
}
|
||||||
|
|
||||||
implicitHeight: nonAnimHeight
|
implicitHeight: nonAnimHeight
|
||||||
implicitWidth: nonAnimWidth
|
implicitWidth: nonAnimWidth
|
||||||
|
|
||||||
@@ -91,7 +95,7 @@ Item {
|
|||||||
|
|
||||||
onSettingSelected: (category, section, settingName) => {
|
onSettingSelected: (category, section, settingName) => {
|
||||||
root.selectCategory(category);
|
root.selectCategory(category);
|
||||||
root.settingSelected(category, section, settingName);
|
root.scrollToSetting(section, settingName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -146,12 +146,12 @@ Item {
|
|||||||
id: popup
|
id: popup
|
||||||
|
|
||||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
||||||
implicitHeight: Math.min(resultsList.contentHeight + Appearance.padding.small * 2 + 10, (contentItem.view.delegate.implicitHeight + Appearance.spacing.smaller) * 5 - Appearance.spacing.smaller + 10)
|
implicitHeight: Math.min(resultsList.contentHeight + Appearance.padding.small * 2 + 10, (55 + Appearance.spacing.smaller) * 5 - Appearance.spacing.smaller + 10 + Appearance.padding.small * 2)
|
||||||
implicitWidth: root.width + Appearance.padding.small * 2
|
implicitWidth: root.width + Appearance.padding.small * 2
|
||||||
modal: false
|
modal: false
|
||||||
padding: 0
|
padding: 0
|
||||||
x: root.width / 2 - popup.width / 2
|
x: root.width / 2 - popup.width / 2
|
||||||
y: searchContainer.height + Appearance.spacing.small
|
y: searchContainer.height + Appearance.spacing.small - 5
|
||||||
|
|
||||||
background: Item {
|
background: Item {
|
||||||
}
|
}
|
||||||
@@ -253,7 +253,7 @@ Item {
|
|||||||
|
|
||||||
signal clicked
|
signal clicked
|
||||||
|
|
||||||
implicitHeight: resultLayout.implicitHeight + Appearance.padding.small * 2
|
implicitHeight: 45 + Appearance.padding.small * 2
|
||||||
radius: Appearance.rounding.small
|
radius: Appearance.rounding.small
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
Reference in New Issue
Block a user