mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
CheatsManager: Allow making the window smaller
Move CheatManager's child widgets into scroll areas to allow making the window smaller than the default. In CheatSearchWidget, enable word wrapping for the label describing the address space and search type to help it fit better inside a narrower window.
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user