diff options
author | flow <flowlnlnln@gmail.com> | 2022-11-25 11:51:08 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-11-25 11:51:08 -0300 |
commit | bae0a0530bd5334a2f41ed234a20a064b5245232 (patch) | |
tree | cdabacd1690a2bee4efb9838723c1e404fb0c45f | |
parent | f916ce875266ea2070c10f80ded35b66d315418c (diff) | |
download | PrismLauncher-bae0a0530bd5334a2f41ed234a20a064b5245232.tar.gz PrismLauncher-bae0a0530bd5334a2f41ed234a20a064b5245232.tar.bz2 PrismLauncher-bae0a0530bd5334a2f41ed234a20a064b5245232.zip |
fix(RPImportDialog): allow changing item size to accomodate wrapped text
Signed-off-by: flow <flowlnlnln@gmail.com>
-rw-r--r-- | launcher/ui/dialogs/ImportResourcePackDialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/ui/dialogs/ImportResourcePackDialog.cpp b/launcher/ui/dialogs/ImportResourcePackDialog.cpp index 7a2152b7..e807e926 100644 --- a/launcher/ui/dialogs/ImportResourcePackDialog.cpp +++ b/launcher/ui/dialogs/ImportResourcePackDialog.cpp @@ -24,10 +24,10 @@ ImportResourcePackDialog::ImportResourcePackDialog(QWidget* parent) : QDialog(pa contentsWidget->setResizeMode(QListView::Adjust); contentsWidget->setSelectionMode(QAbstractItemView::SingleSelection); contentsWidget->setSpacing(5); - contentsWidget->setWordWrap(false); - contentsWidget->setWrapping(true); - contentsWidget->setUniformItemSizes(true); contentsWidget->setWordWrap(true); + contentsWidget->setWrapping(true); + // 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); |