diff options
| author | phit <2097483+phit@users.noreply.github.com> | 2021-06-20 22:55:09 +0200 |
|---|---|---|
| committer | phit <2097483+phit@users.noreply.github.com> | 2021-06-20 22:59:58 +0200 |
| commit | e439ce6e0b8bed288a5a821ed5db80e42dd71e03 (patch) | |
| tree | f36faf74f7dff04c0f636a1a0653d704e8b3eea1 /application/pages/modplatform/flame | |
| parent | f6d6e4c1c463073c44b991e56381d4c1d8e498f8 (diff) | |
| download | PrismLauncher-e439ce6e0b8bed288a5a821ed5db80e42dd71e03.tar.gz PrismLauncher-e439ce6e0b8bed288a5a821ed5db80e42dd71e03.tar.bz2 PrismLauncher-e439ce6e0b8bed288a5a821ed5db80e42dd71e03.zip | |
NOISSUE Fix Modplatform Scrollbars properly
Diffstat (limited to 'application/pages/modplatform/flame')
| -rw-r--r-- | application/pages/modplatform/flame/FlamePage.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/application/pages/modplatform/flame/FlamePage.cpp b/application/pages/modplatform/flame/FlamePage.cpp index 2dd58e16..ade58431 100644 --- a/application/pages/modplatform/flame/FlamePage.cpp +++ b/application/pages/modplatform/flame/FlamePage.cpp @@ -17,9 +17,8 @@ FlamePage::FlamePage(NewInstanceDialog* dialog, QWidget *parent) listModel = new Flame::ListModel(this); ui->packView->setModel(listModel); - ui->versionSelectionBox->setMaxVisibleItems(10); - // fix height for themes that dont respect max visible like fusion - ui->versionSelectionBox->setStyleSheet("combobox-popup: 0;"); + ui->versionSelectionBox->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); + ui->versionSelectionBox->view()->parentWidget()->setMaximumHeight(300); // index is used to set the sorting with the curseforge api ui->sortByBox->addItem(tr("Sort by featured")); |
