From 7a1eae45d3adb9c4bf2bcd3e1a6f76e4a36db50e Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 28 Jan 2022 13:42:36 +0100 Subject: Account menu can now scroll Signed-off-by: Claudio Cambra --- src/gui/tray/Window.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/gui/tray/Window.qml') diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index 631097879..bf4ba5a9a 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -174,6 +174,22 @@ Window { radius: Style.currentAccountButtonRadius } + contentItem: ScrollView { + id: accMenuScrollView + ScrollBar.horizontal.policy: ScrollBar.AlwaysOff + + data: WheelHandler { + target: accMenuScrollView.contentItem + } + ListView { + implicitHeight: contentHeight + model: accountMenu.contentModel + interactive: true + clip: true + currentIndex: accountMenu.currentIndex + } + } + onClosed: { // HACK: reload account Instantiator immediately by restting it - could be done better I guess // see also onVisibleChanged above -- cgit v1.2.3