Settings: Changed the List View to a Table View - now the pages rows are no longer as small as they used to be.

This commit is contained in:
OBattler
2024-06-08 05:02:58 +02:00
parent f95b1d984d
commit 152c0cbf1d
2 changed files with 20 additions and 5 deletions

View File

@@ -182,8 +182,8 @@ Settings::Settings(QWidget *parent)
[this](const QModelIndex &current, const QModelIndex &previous) {
ui->stackedWidget->setCurrentIndex(current.row()); });
ui->listView->setMinimumWidth(ui->listView->sizeHintForColumn(0) +
qApp->style()->pixelMetric(QStyle::PM_ScrollBarExtent));
ui->listView->resizeColumnsToContents();
ui->listView->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
ui->listView->setCurrentIndex(model->index(0, 0));

View File

@@ -36,10 +36,25 @@
<number>0</number>
</property>
<item>
<widget class="QListView" name="listView">
<property name="viewMode">
<enum>QListView::ListMode</enum>
<widget class="QTableView" name="listView">
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="showGrid">
<bool>false</bool>
</property>
<attribute name="horizontalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
</widget>
</item>
<item>