diff --git a/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.cpp b/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.cpp index 06da532df488b7c6e9d51567b4b4bc11435c3cc0..0767aa78945d373e3be802336c1cc5b0809d385c 100644 --- a/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.cpp +++ b/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.cpp @@ -30,7 +30,6 @@ LayerOrientedSampleEditor::LayerOrientedSampleEditor(QWidget* parent) , m_redoAction(nullptr) , m_showInlineEditButtonsAction(nullptr) , m_asAngstrom(nullptr) - , m_asRad(nullptr) , m_currentMultiLayerItem(nullptr) { setAttribute(Qt::WA_StyledBackground, true); @@ -61,12 +60,6 @@ LayerOrientedSampleEditor::LayerOrientedSampleEditor(QWidget* parent) m_asAngstrom->setCheckable(true); m_asAngstrom->setChecked(false); m_toolbar->addAction(m_asAngstrom); - - m_asRad = new QAction("rad", this); - connect(m_asRad, &QAction::toggled, this, &LayerOrientedSampleEditor::onAsRadToggled); - m_asRad->setCheckable(true); - m_asRad->setChecked(false); - m_toolbar->addAction(m_asRad); } LayerOrientedSampleEditor::~LayerOrientedSampleEditor() @@ -136,12 +129,6 @@ void LayerOrientedSampleEditor::onAsAngstromToggled() m_currentMultiLayerWidget->useAngstrom(m_asAngstrom->isChecked()); } -void LayerOrientedSampleEditor::onAsRadToggled() -{ - if (m_currentMultiLayerWidget) - m_currentMultiLayerWidget->useRadiant(m_asRad->isChecked()); -} - void LayerOrientedSampleEditor::createLayerColors() // #baLayerEditor move to better place { if (!m_currentMultiLayerItem) diff --git a/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.h b/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.h index 0e5c7e02f2b5770d5ffbea4fc87f76fa971a7159..96c2d368edca59a2d4f1c0feadb48364077278ab 100644 --- a/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.h +++ b/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.h @@ -37,7 +37,6 @@ private: void updateActionEnabling(); void onShowInlineEditButtonsToggled(bool checked); void onAsAngstromToggled(); - void onAsRadToggled(); void createLayerColors(); QWidget* createEmptyWidget(); @@ -50,7 +49,6 @@ private: QAction* m_redoAction; QAction* m_showInlineEditButtonsAction; QAction* m_asAngstrom; // #baLayerEditor better two autoexclusive actions? - QAction* m_asRad; // #baLayerEditor better two autoexclusive actions? MultiLayerItem* m_currentMultiLayerItem = nullptr; QMap<MultiLayerItem*, SampleEditorController*> m_editControllers; };