diff --git a/Nim/Examples/QtObjectMacro/Contact.nim b/Nim/Examples/QtObjectMacro/Contact.nim index e404895..380d18b 100644 --- a/Nim/Examples/QtObjectMacro/Contact.nim +++ b/Nim/Examples/QtObjectMacro/Contact.nim @@ -6,7 +6,7 @@ QtObject: type Contact* = ref object of QObject m_name: string - proc delete(self: Contact) = + proc delete*(self: Contact) = var qobject = self.QObject qobject.delete() diff --git a/Nim/Examples/SlotsAndProperties/Contact.nim b/Nim/Examples/SlotsAndProperties/Contact.nim index 0f7fdd5..3310b0b 100644 --- a/Nim/Examples/SlotsAndProperties/Contact.nim +++ b/Nim/Examples/SlotsAndProperties/Contact.nim @@ -5,11 +5,11 @@ import NimQml type Contact = ref object of QObject m_name: string -proc delete(self: Contact) = +proc delete*(self: Contact) = var qobject = self.QObject qobject.delete() -proc create(self: Contact) = +proc create*(self: Contact) = var qobject = self.QObject qobject.create() self.m_name = "InitialName"