mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-12 04:26:43 +00:00
[DQml] Added void* metatype
This commit is contained in:
parent
96552b1133
commit
7ea1dfaecb
@ -32,10 +32,11 @@ public enum QMetaType
|
||||
Unknown = 0,
|
||||
Bool = 1,
|
||||
Int = 2,
|
||||
Void = 43,
|
||||
String = 10,
|
||||
VoidStr = 31,
|
||||
QObject = 39,
|
||||
QVariant = 41
|
||||
QVariant = 41,
|
||||
Void = 43
|
||||
}
|
||||
|
||||
public QMetaType GetMetaType(T)()
|
||||
@ -44,7 +45,8 @@ public QMetaType GetMetaType(T)()
|
||||
|| is (T == string)
|
||||
|| is (T == void)
|
||||
|| is (T == QObject)
|
||||
|| is (T == QVariant))
|
||||
|| is (T == QVariant)
|
||||
|| is (T == void*))
|
||||
{
|
||||
static if (is (T == bool))
|
||||
return QMetaType.Bool;
|
||||
@ -58,6 +60,8 @@ public QMetaType GetMetaType(T)()
|
||||
return QMetaType.QObject;
|
||||
else if (is (T == QVariant))
|
||||
return QMetaType.QVariant;
|
||||
else if (is (T == void*))
|
||||
return QMetaType.VoidStar;
|
||||
else
|
||||
return QMetaType.Unknown;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user