diff --git a/UI/UI_plot.cpp b/UI/UI_plot.cpp index c5568f7..a4d112d 100644 --- a/UI/UI_plot.cpp +++ b/UI/UI_plot.cpp @@ -18,6 +18,8 @@ UI_plot::UI_plot(const json &j, QObject *parent) : UI_item{UI_PLOT_TYPE, parent} void UI_plot::set_x_label(std::string name) { m_x_label = name; + + emit value_changed(); } std::string UI_plot::x_label() const @@ -28,6 +30,8 @@ std::string UI_plot::x_label() const void UI_plot::set_y_label(std::string name) { m_y_label = name; + + emit value_changed(); } std::string UI_plot::y_label() const @@ -39,18 +43,24 @@ void UI_plot::add_value(double y) { m_x_vals.push_back((double)m_x_vals.size()); m_y_vals.push_back(y); + + emit value_changed(); } void UI_plot::add_value(double x, double y) { m_x_vals.push_back(x); m_y_vals.push_back(y); + + emit value_changed(); } void UI_plot::clean_vals() { m_x_vals.clear(); m_y_vals.clear(); + + emit value_changed(); } void UI_plot::from_json(const json &j)