Changeset View
Changeset View
Standalone View
Standalone View
tests/test_functions_rust.cpp
Show All 13 Lines | 13 | if (v->isNull() && nbytes == 0) { | |||
---|---|---|---|---|---|
14 | *v = QByteArray(bytes, nbytes); | 14 | *v = QByteArray(bytes, nbytes); | ||
15 | } else { | 15 | } else { | ||
16 | v->truncate(0); | 16 | v->truncate(0); | ||
17 | v->append(bytes, nbytes); | 17 | v->append(bytes, nbytes); | ||
18 | } | 18 | } | ||
19 | } | 19 | } | ||
20 | inline void personUserNameChanged(Person* o) | 20 | inline void personUserNameChanged(Person* o) | ||
21 | { | 21 | { | ||
22 | emit o->userNameChanged(); | 22 | Q_EMIT o->userNameChanged(); | ||
23 | } | 23 | } | ||
24 | } | 24 | } | ||
25 | extern "C" { | 25 | extern "C" { | ||
26 | Person::Private* person_new(Person*, void (*)(Person*)); | 26 | Person::Private* person_new(Person*, void (*)(Person*)); | ||
27 | void person_free(Person::Private*); | 27 | void person_free(Person::Private*); | ||
28 | void person_user_name_get(const Person::Private*, QString*, qstring_set); | 28 | void person_user_name_get(const Person::Private*, QString*, qstring_set); | ||
29 | void person_user_name_set(Person::Private*, const ushort *str, int len); | 29 | void person_user_name_set(Person::Private*, const ushort *str, int len); | ||
30 | void person_append(Person::Private*, const ushort*, int, quint32); | 30 | void person_append(Person::Private*, const ushort*, int, quint32); | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |