mirror of https://github.com/OpenMW/openmw.git
Improve QVariant usage
parent
a9281b5246
commit
54271b872c
@ -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