remove OnMappingChange() arguments

This commit is contained in:
iTrooz 2025-11-01 23:41:45 +01:00
parent 473a100122
commit db3af5772b
No known key found for this signature in database
GPG Key ID: 8B83F77667B1BC6A
6 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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();

View File

@ -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()

View File

@ -663,7 +663,7 @@ void MappingWindow::ActivateExtensionTab()
m_tab_widget->setCurrentIndex(3);
}
void MappingWindow::OnMappingChange(int source)
void MappingWindow::OnMappingChange()
{
UpdateProfileButtonState();
}

View File

@ -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.