Added missing exports for QUrl

This commit is contained in:
Filippo Cucchetto 2016-02-20 11:03:13 +01:00
parent fb70f5dcba
commit e31df59620
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ proc setup*(self: QUrl, url: string, mode: QUrlParsingMode) =
## Setup a new QUrl
dos_qurl_create(self.vptr, url.cstring, mode.cint)
proc delete(self: QUrl) =
proc delete*(self: QUrl) =
## Delete a QUrl
if self.vptr.isNil:
return
@ -10,12 +10,12 @@ proc delete(self: QUrl) =
dos_qurl_delete(self.vptr)
self.vptr.resetToNil
proc newQUrl(url: string, mode: QUrlParsingMode = QUrlParsingMode.Tolerant): QUrl =
proc newQUrl*(url: string, mode: QUrlParsingMode = QUrlParsingMode.Tolerant): QUrl =
## Create a new QUrl
new(result, delete)
result.setup(url, mode)
proc toString(self: QUrl): string =
proc toString*(self: QUrl): string =
## Return the url string
var str: cstring
dos_qurl_to_string(self.vptr, str)