diff options
Diffstat (limited to 'Source/Core/DolphinQt/CheatSearchWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/CheatSearchWidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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() |
