27 #ifndef MOUSEWHEELZOOMTYPE_H
28 #define MOUSEWHEELZOOMTYPE_H
30 #include <QStringList>
32 #include <QMetaObject>
45 MousePositionAndCenter,
51 MousePositionWithoutCenter,
58 static QString StrByType(Types
const& value)
61 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
62 QString
s=metaEnum.valueToKey(value);
65 static Types TypeByStr(QString
const& value)
68 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
69 Types
s=(Types)metaEnum.keyToValue(value.toLatin1());
72 static QStringList TypesList()
76 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
77 for(
int x=0;
x<metaEnum.keyCount();++
x)
79 ret.append(metaEnum.key(
x));
88 #endif // MOUSEWHEELZOOMTYPE_H
Q_DECLARE_METATYPE(Core::Internal::MenuActionContainer *) using namespace Core