renamed QtType macro to QtObject
This commit is contained in:
parent
e5888a989f
commit
62ecd19e60
|
@ -1,13 +1,11 @@
|
|||
import NimQmlTypes
|
||||
import tables
|
||||
from NimQmlMacros import QtType
|
||||
|
||||
export QObject
|
||||
export QApplication
|
||||
export QVariant
|
||||
export QQmlApplicationEngine
|
||||
export QQmlContext
|
||||
export QtType
|
||||
|
||||
type QMetaType* {.pure.} = enum
|
||||
UnknownType = cint(0),
|
||||
|
|
|
@ -227,7 +227,7 @@ proc getIdentDefName*(a: PNimrodNode): PNimrodNode {.compileTime.} =
|
|||
elif a[0].kind == nnkPostFix:
|
||||
return a[0][1]
|
||||
|
||||
macro QtType*(qtDecl: stmt): stmt {.immediate.} =
|
||||
macro QtObject*(qtDecl: stmt): stmt {.immediate.} =
|
||||
expectKind(qtDecl, nnkStmtList)
|
||||
#echo treeRepr qtDecl
|
||||
result = newStmtList()
|
||||
|
|
Loading…
Reference in New Issue