Skip to content

Commit

Permalink
Disabled editing for builtin styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
seleznevae committed Oct 11, 2017
1 parent cbad2af commit 22281cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/commonWidgets/plotstylechoosingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion src/plotStyle/plotstyleeditingwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class PlotStyleEditingWidget : public QWidget

void setPlotStyle(const PlotStyle &style);
PlotStyle plotStyle() const;

signals:
void styleChanged();
private:
Expand Down

0 comments on commit 22281cb

Please sign in to comment.