diff --git a/src/commonWidgets/plotstylechoosingwidget.cpp b/src/commonWidgets/plotstylechoosingwidget.cpp index 5188a77..6fc4553 100644 --- a/src/commonWidgets/plotstylechoosingwidget.cpp +++ b/src/commonWidgets/plotstylechoosingwidget.cpp @@ -213,11 +213,13 @@ void PlotStyleChoosingWidget::treatCurrentItemChanging() // mLayoutModel.setPlotStyle(mUserDefinedStyles.at(mUserDefinedStylesItems.indexOf(curItem))); createPlotWithStyle(mUserDefinedStyles.at(mUserDefinedStylesItems.indexOf(curItem))); ui->plotStyleEditingWidget->setPlotStyle(mUserDefinedStyles.at(mUserDefinedStylesItems.indexOf(curItem))); + ui->plotStyleEditingWidget->setVisible(true); } else { ui->removeButton->setEnabled(false); // mLayoutModel.setPlotStyle(mDefaultStyles.at(mDefaultStylesItems.indexOf(curItem))); createPlotWithStyle(mDefaultStyles.at(mDefaultStylesItems.indexOf(curItem))); ui->plotStyleEditingWidget->setPlotStyle(mDefaultStyles.at(mDefaultStylesItems.indexOf(curItem))); + ui->plotStyleEditingWidget->setVisible(false); } ui->plotWidget->updateEverything(); connectAll(); diff --git a/src/plotStyle/plotstyleeditingwidget.h b/src/plotStyle/plotstyleeditingwidget.h index 4e4960d..8977eb7 100644 --- a/src/plotStyle/plotstyleeditingwidget.h +++ b/src/plotStyle/plotstyleeditingwidget.h @@ -18,7 +18,6 @@ class PlotStyleEditingWidget : public QWidget void setPlotStyle(const PlotStyle &style); PlotStyle plotStyle() const; - signals: void styleChanged(); private: