diff options
author | YuSanka <yusanka@gmail.com> | 2019-04-17 22:35:53 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2019-04-17 22:35:53 +0300 |
commit | 077321b228814fbca66937812ea204842582f4b2 (patch) | |
tree | 29e2ed4102109695d5b2a8e1e61dcac45f3c3d55 /src/slic3r/GUI/Field.hpp | |
parent | 3e9c0c396e22c2a474c6c4835898218bde4023ad (diff) |
Implemented em_unit() function for getting of em_unit value from correct parent.
+ Added correct em_unit to Fields
Diffstat (limited to 'src/slic3r/GUI/Field.hpp')
-rw-r--r-- | src/slic3r/GUI/Field.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Field.hpp b/src/slic3r/GUI/Field.hpp index 4dfb4e239..c776cadea 100644 --- a/src/slic3r/GUI/Field.hpp +++ b/src/slic3r/GUI/Field.hpp @@ -220,6 +220,9 @@ public: virtual void rescale() { m_Undo_to_sys_btn->rescale(); m_Undo_btn->rescale(); + + // update em_unit value + m_em_unit = em_unit(m_parent); } protected: @@ -241,6 +244,8 @@ protected: // current value boost::any m_value; + int m_em_unit; + bool bEnterPressed = false; friend class OptionsGroup; @@ -432,6 +437,8 @@ public: void set_value(const boost::any& value, bool change_event = false); boost::any& get_value() override; + void rescale() override; + void enable() override { x_textctrl->Enable(); y_textctrl->Enable(); } |