mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Merge pull request #12679 from Dentomologist/cheatsmanager_allow_making_window_smaller
CheatsManager: Allow making the window smaller
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include "DolphinQt/CheatSearchFactoryWidget.h"
|
#include "DolphinQt/CheatSearchFactoryWidget.h"
|
||||||
|
#include "DolphinQt/QtUtils/WrapInScrollArea.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -124,7 +125,7 @@ void CheatSearchFactoryWidget::CreateWidgets()
|
|||||||
|
|
||||||
layout->addStretch();
|
layout->addStretch();
|
||||||
|
|
||||||
setLayout(layout);
|
WrapInScrollArea(this, layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheatSearchFactoryWidget::ConnectWidgets()
|
void CheatSearchFactoryWidget::ConnectWidgets()
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include "DolphinQt/CheatSearchWidget.h"
|
#include "DolphinQt/CheatSearchWidget.h"
|
||||||
|
#include "DolphinQt/QtUtils/WrapInScrollArea.h"
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
@ -174,6 +175,7 @@ void CheatSearchWidget::CreateWidgets()
|
|||||||
}
|
}
|
||||||
QString aligned = m_session->GetAligned() ? tr("aligned") : tr("unaligned");
|
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->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"
|
// 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_1);
|
||||||
layout->addWidget(m_info_label_2);
|
layout->addWidget(m_info_label_2);
|
||||||
layout->addWidget(m_address_table);
|
layout->addWidget(m_address_table);
|
||||||
setLayout(layout);
|
|
||||||
|
WrapInScrollArea(this, layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheatSearchWidget::ConnectWidgets()
|
void CheatSearchWidget::ConnectWidgets()
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include "DolphinQt/Config/ARCodeWidget.h"
|
#include "DolphinQt/Config/ARCodeWidget.h"
|
||||||
|
#include "DolphinQt/QtUtils/WrapInScrollArea.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
@ -86,7 +87,7 @@ void ARCodeWidget::CreateWidgets()
|
|||||||
layout->addWidget(m_code_list);
|
layout->addWidget(m_code_list);
|
||||||
layout->addLayout(button_layout);
|
layout->addLayout(button_layout);
|
||||||
|
|
||||||
setLayout(layout);
|
WrapInScrollArea(this, layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARCodeWidget::ConnectWidgets()
|
void ARCodeWidget::ConnectWidgets()
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include "DolphinQt/Config/GeckoCodeWidget.h"
|
#include "DolphinQt/Config/GeckoCodeWidget.h"
|
||||||
|
#include "DolphinQt/QtUtils/WrapInScrollArea.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
@ -138,7 +139,7 @@ void GeckoCodeWidget::CreateWidgets()
|
|||||||
|
|
||||||
layout->addLayout(btn_layout);
|
layout->addLayout(btn_layout);
|
||||||
|
|
||||||
setLayout(layout);
|
WrapInScrollArea(this, layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeckoCodeWidget::ConnectWidgets()
|
void GeckoCodeWidget::ConnectWidgets()
|
||||||
|
Reference in New Issue
Block a user