diff --git a/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.cpp b/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.cpp index c14b68653be72a91d9ca597a5272af4265dc1159..1454570365f9b55c96756330c549dc1f25c28d12 100644 --- a/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.cpp +++ b/GUI/Views/SampleDesigner/LayerOrientedSampleEditor.cpp @@ -56,13 +56,15 @@ LayerOrientedSampleEditor::LayerOrientedSampleEditor(QWidget* parent) m_showInlineEditButtonsAction->setChecked(false); m_toolbar->addAction(m_showInlineEditButtonsAction); - m_asAngstromAction = new QAction("A", this); // #baLayerEditor use icon, not text + m_asAngstromAction = new QAction(this); + m_asAngstromAction->setIcon(QIcon(":/images/unit_angstrom.svg")); m_asAngstromAction->setToolTip("Use \303\205ngstrom as unit (where applicable)"); connect(m_asAngstromAction, &QAction::toggled, this, &LayerOrientedSampleEditor::onUnitActionToggled); m_asAngstromAction->setCheckable(true); - auto* asNanometerAction = new QAction("nm", this); // #baLayerEditor use icon, not text + auto* asNanometerAction = new QAction(this); + asNanometerAction->setIcon(QIcon(":/images/unit_nm.svg")); asNanometerAction->setToolTip("Use nanometer as unit (where applicable)"); connect(asNanometerAction, &QAction::toggled, this, &LayerOrientedSampleEditor::onUnitActionToggled);