mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add a getter in addition to the () operator for caf::AppEnum
* The operator can be awkward to use currently with class enums
This commit is contained in:
parent
cca94f0326
commit
6082d0dd2f
@ -106,6 +106,8 @@ public:
|
||||
bool operator!= (T value) const { return m_value != value;}
|
||||
|
||||
operator T () const { return m_value;}
|
||||
|
||||
T value() const { return m_value; }
|
||||
size_t index() const { return EnumMapper::instance()->index(m_value);}
|
||||
QString text() const { return EnumMapper::instance()->text(m_value);}
|
||||
QString uiText() const { return EnumMapper::instance()->uiText(m_value);}
|
||||
|
Loading…
Reference in New Issue
Block a user