summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-04-01 08:03:33 +0200
committerGitHub <noreply@github.com>2024-04-01 08:03:33 +0200
commit0a7bcc10411c63e2b315c94780efedf2c52ea45f (patch)
treef72c3d5b801353fda541c5eda6129c1f406824c2 /Source/Core
parenta5e410df11b83646f21941caba98674d807daa7e (diff)
parentac4fd2297fda3b1e560b40e3e2e27fb9e5eb4d2e (diff)
Merge pull request #12679 from Dentomologist/cheatsmanager_allow_making_window_smaller
CheatsManager: Allow making the window smaller
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp3
-rw-r--r--Source/Core/DolphinQt/CheatSearchWidget.cpp5
-rw-r--r--Source/Core/DolphinQt/Config/ARCodeWidget.cpp3
-rw-r--r--Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp3
4 files changed, 10 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp b/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp
index bbe262c469..3c51e36812 100644
--- a/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp
+++ b/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "DolphinQt/CheatSearchFactoryWidget.h"
+#include "DolphinQt/QtUtils/WrapInScrollArea.h"
#include <string>
#include <vector>
@@ -124,7 +125,7 @@ void CheatSearchFactoryWidget::CreateWidgets()
layout->addStretch();
- setLayout(layout);
+ WrapInScrollArea(this, layout);
}
void CheatSearchFactoryWidget::ConnectWidgets()
diff --git a/Source/Core/DolphinQt/CheatSearchWidget.cpp b/Source/Core/DolphinQt/CheatSearchWidget.cpp
index 73bf6df95f..196a93ed32 100644
--- a/Source/Core/DolphinQt/CheatSearchWidget.cpp
+++ b/Source/Core/DolphinQt/CheatSearchWidget.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "DolphinQt/CheatSearchWidget.h"
+#include "DolphinQt/QtUtils/WrapInScrollArea.h"
#include <functional>
#include <optional>
@@ -174,6 +175,7 @@ void CheatSearchWidget::CreateWidgets()
}
QString aligned = m_session->GetAligned() ? tr("aligned") : tr("unaligned");
session_info_label->setText(tr("%1, %2, %3, %4").arg(ranges).arg(space).arg(type).arg(aligned));
+ session_info_label->setWordWrap(true);
}
// i18n: This label is followed by a dropdown where the user can select things like "is equal to"
@@ -256,7 +258,8 @@ void CheatSearchWidget::CreateWidgets()
layout->addWidget(m_info_label_1);
layout->addWidget(m_info_label_2);
layout->addWidget(m_address_table);
- setLayout(layout);
+
+ WrapInScrollArea(this, layout);
}
void CheatSearchWidget::ConnectWidgets()
diff --git a/Source/Core/DolphinQt/Config/ARCodeWidget.cpp b/Source/Core/DolphinQt/Config/ARCodeWidget.cpp
index 276318f573..93f0d7e589 100644
--- a/Source/Core/DolphinQt/Config/ARCodeWidget.cpp
+++ b/Source/Core/DolphinQt/Config/ARCodeWidget.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "DolphinQt/Config/ARCodeWidget.h"
+#include "DolphinQt/QtUtils/WrapInScrollArea.h"
#include <algorithm>
#include <utility>
@@ -86,7 +87,7 @@ void ARCodeWidget::CreateWidgets()
layout->addWidget(m_code_list);
layout->addLayout(button_layout);
- setLayout(layout);
+ WrapInScrollArea(this, layout);
}
void ARCodeWidget::ConnectWidgets()
diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
index 1aa6afb643..7f37241ee6 100644
--- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
+++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "DolphinQt/Config/GeckoCodeWidget.h"
+#include "DolphinQt/QtUtils/WrapInScrollArea.h"
#include <algorithm>
#include <utility>
@@ -138,7 +139,7 @@ void GeckoCodeWidget::CreateWidgets()
layout->addLayout(btn_layout);
- setLayout(layout);
+ WrapInScrollArea(this, layout);
}
void GeckoCodeWidget::ConnectWidgets()