gui: replot active mode when settings plot are updated

This commit is contained in:
Kiara Navarro 2021-06-28 23:47:02 -03:00
parent b7a7626e3d
commit d6cecf2603
No known key found for this signature in database
GPG key ID: CDEFDCA3F6E04955
8 changed files with 50 additions and 2 deletions

View file

@ -391,3 +391,8 @@ void TracePlot::markerRemoved(Marker *m)
disconnect(m, &Marker::symbolChanged, this, &TracePlot::triggerReplot);
triggerReplot();
}
void TracePlot::updateGraphColors()
{
replot();
}

View file

@ -28,6 +28,9 @@ public:
static std::set<TracePlot *> getPlots();
public slots:
void updateGraphColors();
signals:
void doubleClicked(QWidget *w);
void deleted(TracePlot*);

View file

@ -18,6 +18,7 @@ public:
virtual void fromJSON(nlohmann::json j) override;
public slots:
void axisSetupDialog();
protected:
static constexpr double ReferenceImpedance = 50.0;
static constexpr double screenUsage = 0.9;