Size the QListView according to minimum width instead of maximum

This commit is contained in:
cold-brewed
2022-07-18 15:22:33 -04:00
parent 0f48d68689
commit 711e26207a

View File

@@ -143,7 +143,7 @@ Settings::Settings(QWidget *parent) :
ui->stackedWidget->setCurrentIndex(current.row());
});
ui->listView->setMaximumWidth(ui->listView->sizeHintForColumn(0) + qApp->style()->pixelMetric(QStyle::PM_ScrollBarExtent));
ui->listView->setMinimumWidth(ui->listView->sizeHintForColumn(0) + qApp->style()->pixelMetric(QStyle::PM_ScrollBarExtent));
Settings::settings = this;
}