fix(RPImportDialog): allow changing item size to accomodate wrapped text
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user