mirror of https://github.com/OpenMW/openmw.git
Merge branch 'qvariant_usertype' into 'master'
Improve QVariant usage See merge request OpenMW/openmw!4261pull/3236/head
commit
89e8514e00
@ -0,0 +1,22 @@
|
|||||||
|
#ifndef CSM_WOLRD_DISABLETAG_H
|
||||||
|
#define CSM_WOLRD_DISABLETAG_H
|
||||||
|
|
||||||
|
#include <QVariant>
|
||||||
|
|
||||||
|
namespace CSMWorld
|
||||||
|
{
|
||||||
|
class DisableTag
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
static QVariant getVariant() { return QVariant::fromValue(CSMWorld::DisableTag()); }
|
||||||
|
|
||||||
|
static bool isDisableTag(const QVariant& variant)
|
||||||
|
{
|
||||||
|
return strcmp(variant.typeName(), "CSMWorld::DisableTag") == 0;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(CSMWorld::DisableTag)
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue