From f2c2a929bb8e7878cee28bedae30ea33a1cbddf2 Mon Sep 17 00:00:00 2001
From: Gennady Pospelov <g.pospelov@fz-juelich.de>
Date: Fri, 17 Apr 2015 17:49:25 +0200
Subject: [PATCH] Units added for GUI's wavelength and beam angles

---
 GUI/coregui/Models/BeamItem.cpp                          | 6 +++---
 GUI/coregui/Views/InstrumentWidgets/BeamEditorWidget.cpp | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/GUI/coregui/Models/BeamItem.cpp b/GUI/coregui/Models/BeamItem.cpp
index 37419d47f0b..f7b621be332 100644
--- a/GUI/coregui/Models/BeamItem.cpp
+++ b/GUI/coregui/Models/BeamItem.cpp
@@ -25,9 +25,9 @@
 #include <QDebug>
 
 const QString BeamItem::P_INTENSITY = "Intensity [1/s]";
-const QString BeamItem::P_WAVELENGTH = "Wavelength [nm]";
-const QString BeamItem::P_INCLINATION_ANGLE = "Inclination Angle [deg]";
-const QString BeamItem::P_AZIMUTHAL_ANGLE = "Azimuthal Angle [deg]";
+const QString BeamItem::P_WAVELENGTH = "Wavelength";
+const QString BeamItem::P_INCLINATION_ANGLE = "Inclination Angle";
+const QString BeamItem::P_AZIMUTHAL_ANGLE = "Azimuthal Angle";
 
 BeamItem::BeamItem(ParameterizedItem *parent)
     : ParameterizedItem(Constants::BeamType, parent)
diff --git a/GUI/coregui/Views/InstrumentWidgets/BeamEditorWidget.cpp b/GUI/coregui/Views/InstrumentWidgets/BeamEditorWidget.cpp
index 1757fe23e93..4fccbe1e1a9 100644
--- a/GUI/coregui/Views/InstrumentWidgets/BeamEditorWidget.cpp
+++ b/GUI/coregui/Views/InstrumentWidgets/BeamEditorWidget.cpp
@@ -79,12 +79,12 @@ void BeamEditorWidget::setBeamItem(BeamItem *beamItem)
     m_intensityEditor->addItemProperty(m_beamItem, BeamItem::P_INTENSITY);
 
     ParameterizedItem *wavelengthItem = m_beamItem->getSubItems()[BeamItem::P_WAVELENGTH];
-    m_wavelengthEditor->addItemProperties(wavelengthItem, QString("Wavelength"), AwesomePropertyEditor::INSERT_AFTER);
+    m_wavelengthEditor->addItemProperties(wavelengthItem, QString("Wavelength [nm]"), AwesomePropertyEditor::INSERT_AFTER);
 
     ParameterizedItem *inclinationAngleItem = m_beamItem->getSubItems()[BeamItem::P_INCLINATION_ANGLE];
-    m_inclinationAngleEditor->addItemProperties(inclinationAngleItem, QString("Inclination angle"), AwesomePropertyEditor::INSERT_AFTER);
+    m_inclinationAngleEditor->addItemProperties(inclinationAngleItem, QString("Inclination angle [deg]"), AwesomePropertyEditor::INSERT_AFTER);
 
     ParameterizedItem *azimuthalAngleItem = m_beamItem->getSubItems()[BeamItem::P_AZIMUTHAL_ANGLE];
-    m_azimuthalAngleEditor->addItemProperties(azimuthalAngleItem, QString("Azimuthal angle"), AwesomePropertyEditor::INSERT_AFTER);
+    m_azimuthalAngleEditor->addItemProperties(azimuthalAngleItem, QString("Azimuthal angle [deg]"), AwesomePropertyEditor::INSERT_AFTER);
 }
 
-- 
GitLab