Fix accidental changes

This commit is contained in:
Cacodemon345
2022-04-27 22:09:57 +06:00
committed by GitHub
parent 9f353ddbfa
commit d1eee777aa

View File

@@ -43,6 +43,8 @@ extern "C"
#include <QDebug>
#include <QMessageBox>
#include <QCheckBox>
#include <QApplication>
#include <QStyle>
class SettingsModel : public QAbstractListModel {
public:
@@ -104,13 +106,6 @@ Settings::Settings(QWidget *parent) :
{
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;
machine = new SettingsMachine(this);
display = new SettingsDisplay(this);
@@ -147,6 +142,8 @@ Settings::Settings(QWidget *parent) :
ui->stackedWidget->setCurrentIndex(current.row());
});
ui->listView->setMaximumWidth(ui->listView->sizeHintForColumn(0) + qApp->style()->pixelMetric(QStyle::PM_ScrollBarExtent));
Settings::settings = this;
}