diff options
author | leo78913 <leo3758@riseup.net> | 2022-12-15 16:34:52 -0300 |
---|---|---|
committer | leo78913 <leo3758@riseup.net> | 2022-12-15 16:34:52 -0300 |
commit | c8d8dda79a8ac184c98922372ef7c3531f897486 (patch) | |
tree | eb3a3634bc052e8eb73ba9f5c1f96e2566e610a1 /launcher/ui/dialogs | |
parent | aaef4489593e56cf2a8cbd94bb882c7114c93512 (diff) | |
download | PrismLauncher-c8d8dda79a8ac184c98922372ef7c3531f897486.tar.gz PrismLauncher-c8d8dda79a8ac184c98922372ef7c3531f897486.tar.bz2 PrismLauncher-c8d8dda79a8ac184c98922372ef7c3531f897486.zip |
fix: only show scrollbars when needed
Signed-off-by: leo78913 <leo3758@riseup.net>
Diffstat (limited to 'launcher/ui/dialogs')
-rw-r--r-- | launcher/ui/dialogs/IconPickerDialog.cpp | 1 | ||||
-rw-r--r-- | launcher/ui/dialogs/ImportResourcePackDialog.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/launcher/ui/dialogs/IconPickerDialog.cpp b/launcher/ui/dialogs/IconPickerDialog.cpp index fcb645db..6fa26508 100644 --- a/launcher/ui/dialogs/IconPickerDialog.cpp +++ b/launcher/ui/dialogs/IconPickerDialog.cpp @@ -47,7 +47,6 @@ IconPickerDialog::IconPickerDialog(QWidget *parent) contentsWidget->setUniformItemSizes(true); contentsWidget->setTextElideMode(Qt::ElideRight); contentsWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); - contentsWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); contentsWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); contentsWidget->setItemDelegate(new ListViewDelegate()); diff --git a/launcher/ui/dialogs/ImportResourcePackDialog.cpp b/launcher/ui/dialogs/ImportResourcePackDialog.cpp index e807e926..e8902656 100644 --- a/launcher/ui/dialogs/ImportResourcePackDialog.cpp +++ b/launcher/ui/dialogs/ImportResourcePackDialog.cpp @@ -29,7 +29,6 @@ ImportResourcePackDialog::ImportResourcePackDialog(QWidget* parent) : QDialog(pa // NOTE: We can't have uniform sizes because the text may wrap if it's too long. If we set this, it will cut off the wrapped text. contentsWidget->setUniformItemSizes(false); contentsWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); - contentsWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); contentsWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); contentsWidget->setItemDelegate(new ListViewDelegate()); |