Move MappingWindow::OnDefaultFieldsPressed() to correct file
This commit is contained in:
parent
6c73079011
commit
2188ac785a
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue