Now require objects to be explicitly exported for create to be exported

This commit is contained in:
Will Szumski 2015-01-05 23:48:59 +00:00 committed by Filippo Cucchetto
parent 7b25e28d58
commit 9e91b25cda
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
import NimQml, NimQmlMacros
QtObject:
type Contact = ref object of QObject
type Contact* = ref object of QObject
m_name: string
template newContact*(): Contact =
@ -24,4 +24,4 @@ QtObject:
QtProperty name of string:
read = getName
write = setName
notify = nameChanged
notify = nameChanged