mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Qt: Implement "Iterative Input"
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QGroupBox>
|
||||
@ -108,14 +109,19 @@ void MappingWindow::CreateMainLayout()
|
||||
{
|
||||
m_main_layout = new QVBoxLayout();
|
||||
m_config_layout = new QHBoxLayout();
|
||||
m_iterative_input = new QCheckBox(tr("Iterative Input"));
|
||||
m_tab_widget = new QTabWidget();
|
||||
m_button_box = new QDialogButtonBox(QDialogButtonBox::Close);
|
||||
|
||||
m_iterative_input->setToolTip(tr("Automatically progress one button after another during "
|
||||
"configuration. Useful for first-time setup."));
|
||||
|
||||
m_config_layout->addWidget(m_devices_box);
|
||||
m_config_layout->addWidget(m_reset_box);
|
||||
m_config_layout->addWidget(m_profiles_box);
|
||||
|
||||
m_main_layout->addItem(m_config_layout);
|
||||
m_main_layout->addWidget(m_iterative_input);
|
||||
m_main_layout->addWidget(m_tab_widget);
|
||||
m_main_layout->addWidget(m_button_box);
|
||||
|
||||
@ -337,3 +343,8 @@ void MappingWindow::OnDefaultFieldsPressed()
|
||||
m_controller->UpdateReferences(g_controller_interface);
|
||||
emit Update();
|
||||
}
|
||||
|
||||
bool MappingWindow::IsIterativeInput() const
|
||||
{
|
||||
return m_iterative_input->isChecked();
|
||||
}
|
||||
|
Reference in New Issue
Block a user