diff options
Diffstat (limited to 'client-qt/udm-client-qt/marked_class.h')
-rw-r--r-- | client-qt/udm-client-qt/marked_class.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/client-qt/udm-client-qt/marked_class.h b/client-qt/udm-client-qt/marked_class.h index de5bd96..f3fef9c 100644 --- a/client-qt/udm-client-qt/marked_class.h +++ b/client-qt/udm-client-qt/marked_class.h @@ -23,6 +23,14 @@ #ifndef MARKED_CLASS #define MARKED_CLASS +enum widget_type_e +{ + wrong_type_t = -1, + QLineEdit_t = 0, + QSpinBox_t +}; + + template <typename BASE> class marked_class : public BASE { @@ -37,8 +45,19 @@ public: return mark; } + void set_type(widget_type_e t) + { + type = t; + } + widget_type_e get_type() + { + return type; + } + + private: int mark = -1; + widget_type_e type = wrong_type_t; }; #endif // MARKED_CLASS |