~aleteoryx/muditaos

90e97cb4720701a98c0fff92a8bb056e38d44150 — Bartosz Cichocki 4 years ago a53b609
[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
1 files changed, 13 insertions(+), 0 deletions(-)

M module-apps/application-settings-new/windows/AllDevicesWindow.cpp
M module-apps/application-settings-new/windows/AllDevicesWindow.cpp => module-apps/application-settings-new/windows/AllDevicesWindow.cpp +13 -0
@@ 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);
    }