Changeset View
Changeset View
Standalone View
Standalone View
tests/test_objects_rust.cpp
1 | /* generated by rust_qt_binding_generator */ | 1 | /* generated by rust_qt_binding_generator */ | ||
---|---|---|---|---|---|
2 | #include "test_objects_rust.h" | 2 | #include "test_objects_rust.h" | ||
3 | 3 | | |||
4 | namespace { | 4 | namespace { | ||
5 | 5 | | |||
6 | typedef void (*qstring_set)(QString* val, const char* utf8, int nbytes); | 6 | typedef void (*qstring_set)(QString* val, const char* utf8, int nbytes); | ||
7 | void set_qstring(QString* val, const char* utf8, int nbytes) { | 7 | void set_qstring(QString* val, const char* utf8, int nbytes) { | ||
8 | *val = QString::fromUtf8(utf8, nbytes); | 8 | *val = QString::fromUtf8(utf8, nbytes); | ||
9 | } | 9 | } | ||
10 | inline void innerObjectDescriptionChanged(InnerObject* o) | 10 | inline void innerObjectDescriptionChanged(InnerObject* o) | ||
11 | { | 11 | { | ||
12 | emit o->descriptionChanged(); | 12 | Q_EMIT o->descriptionChanged(); | ||
13 | } | 13 | } | ||
14 | } | 14 | } | ||
15 | extern "C" { | 15 | extern "C" { | ||
16 | Group::Private* group_new(Group*, Person*, InnerObject*, void (*)(InnerObject*)); | 16 | Group::Private* group_new(Group*, Person*, InnerObject*, void (*)(InnerObject*)); | ||
17 | void group_free(Group::Private*); | 17 | void group_free(Group::Private*); | ||
18 | Person::Private* group_person_get(const Group::Private*); | 18 | Person::Private* group_person_get(const Group::Private*); | ||
19 | }; | 19 | }; | ||
20 | 20 | | |||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |