Skip to content
Snippets Groups Projects
Commit 9b513d59 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

rm JobItem mapper from ParameterTuningManager

parent 04659d58
No related branches found
No related tags found
1 merge request!911GUI refactoring: JobItem mappers are fully removed
......@@ -173,18 +173,13 @@ void ParameterTuningWidget::subscribeToItem()
updateParameterModel();
updateDragAndDropSettings();
jobItem()->mapper()->setOnPropertyChange(
[this](const QString& name) { onPropertyChanged(name); }, this);
// status
connect(jobItem(), &JobItem::jobStatusChanged, this,
[=](const JobStatus) {updateJobStatus();}, Qt::UniqueConnection);
updateJobStatus();
}
void ParameterTuningWidget::onPropertyChanged(const QString& property_name)
{
if (JobItem::isStatusPropertyName(property_name))
updateJobStatus();
}
JobItem* ParameterTuningWidget::jobItem()
{
return dynamic_cast<JobItem*>(currentItem());
......
......@@ -56,7 +56,6 @@ protected:
void subscribeToItem() override;
private slots:
void onPropertyChanged(const QString& property_name);
void updateParameterModel();
void onCustomContextMenuRequested(const QPoint& point);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment