Merge pull request #2319 from Cacodemon345/patch-77
Fix accidental changes
This commit is contained in:
@@ -43,6 +43,8 @@ extern "C"
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QStyle>
|
||||||
|
|
||||||
class SettingsModel : public QAbstractListModel {
|
class SettingsModel : public QAbstractListModel {
|
||||||
public:
|
public:
|
||||||
@@ -104,13 +106,6 @@ Settings::Settings(QWidget *parent) :
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
ui->listView->setModel(new SettingsModel(this));
|
|
||||||
ui->listView->setFlow(QListView::TopToBottom);
|
|
||||||
ui->listView->setWrapping(false);
|
|
||||||
ui->listView->setWordWrap(true);
|
|
||||||
ui->listView->setItemAlignment(Qt::AlignmentFlag::AlignHCenter);
|
|
||||||
ui->listView->setUniformItemSizes(true);
|
|
||||||
|
|
||||||
Harddrives::busTrackClass = new SettingsBusTracking;
|
Harddrives::busTrackClass = new SettingsBusTracking;
|
||||||
machine = new SettingsMachine(this);
|
machine = new SettingsMachine(this);
|
||||||
display = new SettingsDisplay(this);
|
display = new SettingsDisplay(this);
|
||||||
@@ -147,6 +142,8 @@ Settings::Settings(QWidget *parent) :
|
|||||||
ui->stackedWidget->setCurrentIndex(current.row());
|
ui->stackedWidget->setCurrentIndex(current.row());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ui->listView->setMaximumWidth(ui->listView->sizeHintForColumn(0) + qApp->style()->pixelMetric(QStyle::PM_ScrollBarExtent));
|
||||||
|
|
||||||
Settings::settings = this;
|
Settings::settings = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QListView" name="listView">
|
<widget class="QListView" name="listView">
|
||||||
<property name="viewMode">
|
<property name="viewMode">
|
||||||
<enum>QListView::IconMode</enum>
|
<enum>QListView::ListMode</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Reference in New Issue
Block a user