From 90e97cb4720701a98c0fff92a8bb056e38d44150 Mon Sep 17 00:00:00 2001 From: Bartosz Cichocki Date: Tue, 6 Jul 2021 12:24:13 +0200 Subject: [PATCH] [EGD-7084] No scrollbar on All devices list When paired with more devices that are able to be displayed, the user could be not aware of rest of the list as there was no scrollbar --- .../windows/AllDevicesWindow.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module-apps/application-settings-new/windows/AllDevicesWindow.cpp b/module-apps/application-settings-new/windows/AllDevicesWindow.cpp index 76873df93a4ac85cdbc72d8025908dd152ccc0f5..45abce05188620482794f80bb490dfbab5b24802 100644 --- a/module-apps/application-settings-new/windows/AllDevicesWindow.cpp +++ b/module-apps/application-settings-new/windows/AllDevicesWindow.cpp @@ -27,6 +27,19 @@ namespace gui void AllDevicesWindow::buildInterface() { setTitle(utils::translate("app_settings_bluetooth_all_devices")); + + optionsList = new gui::ListView(this, + option::window::optionsListX, + option::window::optionsListY, + option::window::optionsListW, + option::window::optionsListH, + optionsModel, + listview::ScrollBarType::Proportional); + + optionsList->prepareRebuildCallback = [this]() { recreateOptions(); }; + optionsModel->createData(options); + setFocusItem(optionsList); + header->navigationIndicatorAdd(new gui::header::AddElementAction(), gui::header::BoxSelection::Left); }