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:
@@ -182,8 +182,8 @@ Settings::Settings(QWidget *parent)
|
||||
[this](const QModelIndex ¤t, 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));
|
||||
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user