1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-11-14 21:16:42 +00:00

Move PullDownMenu into the SilicaListView

A `SilicaListView` will properly handle a child `PullDownMenu`.  It was
previously working when it was the child of a `SilicaFlickable`, but
since it was replaced by a `Column` it was not usable anymore.

Attaching the `PullDownMenu` to the `SilicaListView` instead of the
`SilicaFlickable`, it is properly hidden when the list of OTP is scroll
down and the menu cannot be operated by scrolling down.
This commit is contained in:
Romain Tartière 2024-09-29 18:46:49 -10:00
parent eb12a09f19
commit 3a7c2d83f5
No known key found for this signature in database
GPG key ID: BA4D1D955112336F

View file

@ -104,6 +104,12 @@ Page {
Column {
anchors.fill: parent
SilicaListView {
id: otpList
model: appWin.listModel
height: parent.height - updateProgress.height - searchField.height
width: parent.width
PullDownMenu {
MenuItem {
text: qsTr("About")
@ -124,13 +130,6 @@ Page {
}
}
SilicaListView {
id: otpList
model: appWin.listModel
height: parent.height - updateProgress.height - searchField.height
width: parent.width
ViewPlaceholder {
enabled: otpList.count == 0
text: qsTr("Nothing here")