You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
702 B
39 lines
702 B
#ifndef EMEASURETAB_H
|
|
#define EMEASURETAB_H
|
|
|
|
#include <QtCore>
|
|
#include <QMetaType>
|
|
|
|
class EMeasureTab : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
//Private constructor prevent the enumeration class from being instantiated
|
|
explicit EMeasureTab(QObject* parent = nullptr);
|
|
|
|
public:
|
|
enum eMeasureTab : quint8
|
|
{
|
|
EMPTY_TAB,
|
|
B_TAB,
|
|
M_TAB,
|
|
PW_TAB,
|
|
};
|
|
|
|
Q_ENUM(eMeasureTab)
|
|
|
|
static int qtEnumToInt(const eMeasureTab qtEnum)
|
|
{
|
|
return QMetaEnum::fromType<eMeasureTab>().value(qtEnum);
|
|
}
|
|
|
|
static QString qtEnumToString(const eMeasureTab qtEnum)
|
|
{
|
|
return QString(QMetaEnum::fromType<eMeasureTab>().valueToKey(qtEnum));
|
|
}
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(EMeasureTab::eMeasureTab);
|
|
|
|
#endif //EMEASURETAB_H
|
|
|