Qt/Mapping: Fix "Default" not working properly.

This commit is contained in:
spycrab 2018-05-02 16:55:42 +02:00
parent 71c8c65e6f
commit 3d7b613be5
4 changed files with 5 additions and 2 deletions

View file

@ -24,6 +24,7 @@ MappingWidget::MappingWidget(MappingWindow* window) : m_parent(window)
{
connect(window, &MappingWindow::ClearFields, this, &MappingWidget::OnClearFields);
connect(window, &MappingWindow::Update, this, &MappingWidget::Update);
connect(window, &MappingWindow::Save, this, &MappingWidget::SaveSettings);
}
MappingWindow* MappingWidget::GetParent() const

View file

@ -24,7 +24,7 @@ namespace ControllerEmu
class Control;
class ControlGroup;
class EmulatedController;
}
} // namespace ControllerEmu
namespace ciface
{
@ -32,7 +32,7 @@ namespace Core
{
class Device;
}
}
} // namespace ciface
class MappingWidget : public QWidget
{

View file

@ -345,6 +345,7 @@ void MappingWindow::OnDefaultFieldsPressed()
m_controller->LoadDefaults(g_controller_interface);
m_controller->UpdateReferences(g_controller_interface);
emit Update();
emit Save();
}
bool MappingWindow::IsIterativeInput() const

View file

@ -56,6 +56,7 @@ public:
signals:
void Update();
void ClearFields();
void Save();
private:
void SetMappingType(Type type);