mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-20 07:13:49 -07:00
remove OnMappingChange() arguments
This commit is contained in:
parent
473a100122
commit
db3af5772b
@ -771,7 +771,7 @@ void IOWindow::UpdateExpression(std::string new_expression, UpdateMode mode)
|
||||
m_controller->UpdateSingleControlReference(g_controller_interface, m_reference);
|
||||
|
||||
// Emit signal that this IOWindow's expression changed.
|
||||
emit OnMappingChange(QString::fromStdString(m_reference->GetExpression()));
|
||||
emit OnMappingChange();
|
||||
|
||||
// This is the only place where we need to update the user variables. Keep the first 4 items.
|
||||
while (m_variables_combo->count() > 4)
|
||||
|
||||
@ -71,7 +71,7 @@ public:
|
||||
signals:
|
||||
void DetectInputComplete();
|
||||
void TestOutputComplete();
|
||||
void OnMappingChange(const QString& expression);
|
||||
void OnMappingChange();
|
||||
|
||||
private:
|
||||
std::shared_ptr<ciface::Core::Device> GetSelectedDevice() const;
|
||||
|
||||
@ -93,8 +93,8 @@ void MappingButton::AdvancedPressed()
|
||||
IOWindow io(m_mapping_window, m_mapping_window->GetController(), m_reference,
|
||||
m_reference->IsInput() ? IOWindow::Type::Input : IOWindow::Type::Output);
|
||||
|
||||
connect(&io, &IOWindow::OnMappingChange, m_mapping_window, [this](const QString& expr) {
|
||||
m_mapping_window->OnMappingChange(1);
|
||||
connect(&io, &IOWindow::OnMappingChange, m_mapping_window, [this] {
|
||||
m_mapping_window->OnMappingChange();
|
||||
});
|
||||
|
||||
io.exec();
|
||||
|
||||
@ -133,7 +133,7 @@ public:
|
||||
m_parent->GetController()->UpdateSingleControlReference(g_controller_interface,
|
||||
control_reference);
|
||||
m_parent->GetController()->GetConfig()->GenerateControllerTextures();
|
||||
m_parent->OnMappingChange(0);
|
||||
m_parent->OnMappingChange();
|
||||
}
|
||||
|
||||
void UpdateInputDetectionStartTimer()
|
||||
|
||||
@ -663,7 +663,7 @@ void MappingWindow::ActivateExtensionTab()
|
||||
m_tab_widget->setCurrentIndex(3);
|
||||
}
|
||||
|
||||
void MappingWindow::OnMappingChange(int source)
|
||||
void MappingWindow::OnMappingChange()
|
||||
{
|
||||
UpdateProfileButtonState();
|
||||
}
|
||||
@ -56,7 +56,7 @@ public:
|
||||
bool IsIterativeMappingEnabled() const;
|
||||
void ShowExtensionMotionTabs(bool show);
|
||||
void ActivateExtensionTab();
|
||||
void OnMappingChange(int source);
|
||||
void OnMappingChange();
|
||||
|
||||
signals:
|
||||
// Emitted when config has changed so widgets can update to reflect the change.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user