mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
caf AppEnum: Added index() method
This commit is contained in:
parent
f7869f9a5c
commit
86fe500690
@ -98,6 +98,7 @@ public:
|
|||||||
bool operator!= (T value) const { return m_value != value;}
|
bool operator!= (T value) const { return m_value != value;}
|
||||||
|
|
||||||
operator T () const { return m_value;}
|
operator T () const { return m_value;}
|
||||||
|
size_t index() const { return EnumMapper::instance()->index(m_value);}
|
||||||
QString text() const { return EnumMapper::instance()->text(m_value);}
|
QString text() const { return EnumMapper::instance()->text(m_value);}
|
||||||
QString uiText() const { return EnumMapper::instance()->uiText(m_value);}
|
QString uiText() const { return EnumMapper::instance()->uiText(m_value);}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user