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) {
|
[this](const QModelIndex ¤t, const QModelIndex &previous) {
|
||||||
ui->stackedWidget->setCurrentIndex(current.row()); });
|
ui->stackedWidget->setCurrentIndex(current.row()); });
|
||||||
|
|
||||||
ui->listView->setMinimumWidth(ui->listView->sizeHintForColumn(0) +
|
ui->listView->resizeColumnsToContents();
|
||||||
qApp->style()->pixelMetric(QStyle::PM_ScrollBarExtent));
|
ui->listView->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
|
||||||
|
|
||||||
ui->listView->setCurrentIndex(model->index(0, 0));
|
ui->listView->setCurrentIndex(model->index(0, 0));
|
||||||
|
|
||||||
|
@@ -36,10 +36,25 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QListView" name="listView">
|
<widget class="QTableView" name="listView">
|
||||||
<property name="viewMode">
|
<property name="editTriggers">
|
||||||
<enum>QListView::ListMode</enum>
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||||||
</property>
|
</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>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
Reference in New Issue
Block a user