Skip to content

Commit

Permalink
Add QUrl::fromLocalFile method
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jul 26, 2020
1 parent 7375ed6 commit 7cfe402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wrap_qml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ JLCXX_MODULE define_julia_module(jlcxx::Module& qml_module)
qml_module.add_type<QUrl>("QUrl")
.constructor<QString>()
.method("toString", [] (const QUrl& url) { return url.toString(); });
qml_module.method("QUrlFromLocalFile", QUrl::fromLocalFile);

auto qvar_type = qml_module.add_type<QVariant>("QVariant");
qvar_type.method("toString", &QVariant::toString);
Expand Down

0 comments on commit 7cfe402

Please sign in to comment.