Move MappingWindow::OnDefaultFieldsPressed() to correct file

This commit is contained in:
Michael Maltese 2017-06-13 16:57:05 -07:00
parent 6c73079011
commit 2188ac785a
2 changed files with 10 additions and 10 deletions

View file

@ -90,16 +90,6 @@ void MappingButton::SetBlockInputs(const bool block)
m_block = block;
}
void MappingWindow::OnDefaultFieldsPressed()
{
if (m_controller == nullptr)
return;
m_controller->LoadDefaults(g_controller_interface);
m_controller->UpdateReferences(g_controller_interface);
emit Update();
}
bool MappingButton::event(QEvent* event)
{
return !m_block ? QPushButton::event(event) : true;

View file

@ -381,3 +381,13 @@ bool MappingWindow::event(QEvent* event)
return false;
}
void MappingWindow::OnDefaultFieldsPressed()
{
if (m_controller == nullptr)
return;
m_controller->LoadDefaults(g_controller_interface);
m_controller->UpdateReferences(g_controller_interface);
emit Update();
}