diff --git a/src/qt_gui/cheats_patches.cpp b/src/qt_gui/cheats_patches.cpp
index 2fea0b6eacb..13157aa3a65 100644
--- a/src/qt_gui/cheats_patches.cpp
+++ b/src/qt_gui/cheats_patches.cpp
@@ -188,8 +188,12 @@ void CheatsPatches::setupUI() {
}
});
+ QPushButton* closeButton = new QPushButton(tr("Close"));
+ connect(closeButton, &QPushButton::clicked, [this]() { QWidget::close(); });
+
controlLayout->addWidget(downloadButton);
controlLayout->addWidget(deleteCheatButton);
+ controlLayout->addWidget(closeButton);
cheatsLayout->addLayout(controlLayout);
cheatsTab->setLayout(cheatsLayout);
@@ -464,6 +468,8 @@ void CheatsPatches::onSaveButtonClicked() {
} else {
QMessageBox::information(this, tr("Success"), tr("Options saved successfully."));
}
+
+ QWidget::close();
}
QCheckBox* CheatsPatches::findCheckBoxByName(const QString& name) {
diff --git a/src/qt_gui/settings_dialog.cpp b/src/qt_gui/settings_dialog.cpp
index a4b584294be..175c8c51d41 100644
--- a/src/qt_gui/settings_dialog.cpp
+++ b/src/qt_gui/settings_dialog.cpp
@@ -522,22 +522,6 @@ bool SettingsDialog::eventFilter(QObject* obj, QEvent* event) {
} else {
ui->descriptionText->setText(defaultTextEdit);
}
-
- // if the text exceeds the size of the box, it will increase the size
- QRect currentGeometry = this->geometry();
- int newWidth = currentGeometry.width();
-
- int documentHeight = ui->descriptionText->document()->size().height();
- int visibleHeight = ui->descriptionText->viewport()->height();
- if (documentHeight > visibleHeight) {
- ui->descriptionText->setMaximumSize(16777215, 110);
- this->setGeometry(currentGeometry.x(), currentGeometry.y(), newWidth,
- currentGeometry.height() + 40);
- } else {
- ui->descriptionText->setMaximumSize(16777215, 70);
- this->setGeometry(currentGeometry.x(), currentGeometry.y(), newWidth,
- initialHeight);
- }
return true;
}
}
diff --git a/src/qt_gui/settings_dialog.ui b/src/qt_gui/settings_dialog.ui
index 8d68d1c9028..c084d4849d8 100644
--- a/src/qt_gui/settings_dialog.ui
+++ b/src/qt_gui/settings_dialog.ui
@@ -12,7 +12,7 @@
0
0
970
- 750
+ 820
@@ -68,7 +68,7 @@
0
0
946
- 586
+ 611
@@ -77,43 +77,6 @@
0
- -
-
-
-
-
-
- System
-
-
-
-
-
-
- Console Language
-
-
-
-
-
-
-
-
-
- -
-
-
- Emulator Language
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -217,7 +180,214 @@
- -
+
-
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+ GUI Settings
+
+
+
+ 1
+
+
+ 11
+
+
-
+
+
+ Show Game Size In List
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Play title music
+
+
+
+ -
+
+
+ 1
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 16777215
+ 16777215
+
+
+
+ Volume
+
+
+
+ -
+
+
+ Set the volume of the background music.
+
+
+ 100
+
+
+ 10
+
+
+ 20
+
+
+ 50
+
+
+ Qt::Orientation::Horizontal
+
+
+ false
+
+
+ false
+
+
+ QSlider::TickPosition::NoTicks
+
+
+ 10
+
+
+
+
+
+ -
+
+
+ 6
+
+
+ 0
+
+
+ 50
+
+
-
+
+
-
+
+
+ Trophy
+
+
+
-
+
+
+ Disable Trophy Pop-ups
+
+
+
+ -
+
+
+ Trophy Key
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
+ System
+
+
+
-
+
+
+ Console Language
+
+
+
-
+
+
+
+
+
+ -
+
+
+ Emulator Language
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+ -
6
@@ -271,7 +441,7 @@
11
- 11
+ 190
-
@@ -384,7 +554,7 @@
- -
+
-
-
@@ -457,176 +627,6 @@
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
- GUI Settings
-
-
-
- 1
-
-
- 11
-
-
-
-
-
- Show Game Size In List
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Play title music
-
-
-
- -
-
-
- 1
-
-
- 0
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 16777215
- 16777215
-
-
-
- Volume
-
-
-
- -
-
-
- Set the volume of the background music.
-
-
- 100
-
-
- 10
-
-
- 20
-
-
- 50
-
-
- Qt::Orientation::Horizontal
-
-
- false
-
-
- false
-
-
- QSlider::TickPosition::NoTicks
-
-
- 10
-
-
-
-
-
- -
-
-
- 6
-
-
- 0
-
-
- 50
-
-
-
-
-
-
-
-
- Trophy
-
-
-
-
-
-
- Disable Trophy Pop-ups
-
-
-
- -
-
-
- Trophy Key
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -645,12 +645,12 @@
0
0
946
- 586
+ 605
-
-
+
-
@@ -664,17 +664,14 @@
Cursor
-
-
- 0
-
+
11
11
-
-
+
-
true
@@ -701,7 +698,7 @@
- -
+
-
true
@@ -836,7 +833,7 @@
true
-
+
0
0
@@ -872,6 +869,12 @@
true
+
+
+ 0
+ 0
+
+
0
@@ -885,23 +888,6 @@
- -
-
-
-
-
-
- Qt::Orientation::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
-
-
@@ -943,7 +929,7 @@
0
0
946
- 586
+ 605
@@ -1124,11 +1110,14 @@
-
+
+ true
+
Advanced
- Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter
+ Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop
-
@@ -1194,7 +1183,7 @@
0
0
946
- 586
+ 605
@@ -1233,22 +1222,6 @@
- -
-
-
- Qt::Orientation::Horizontal
-
-
- QSizePolicy::Policy::Preferred
-
-
-
- 40
- 20
-
-
-
-
@@ -1445,10 +1418,16 @@
-
+
+
+ 0
+ 0
+
+
16777215
- 70
+ 120