Skip to content
Snippets Groups Projects
Commit 95885831 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

use unit icons in actions of layer oriented sample editor

parent ef30a15c
No related branches found
No related tags found
1 merge request!415Unit handling in layer oriented sample editor
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment