Changeset View
Changeset View
Standalone View
Standalone View
tests/test_functions_rust.h
- This file was added.
1 | /* generated by rust_qt_binding_generator */ | ||||
---|---|---|---|---|---|
2 | #ifndef TEST_FUNCTIONS_RUST_H | ||||
3 | #define TEST_FUNCTIONS_RUST_H | ||||
4 | | ||||
5 | #include <QObject> | ||||
6 | #include <QAbstractItemModel> | ||||
7 | | ||||
8 | class Person; | ||||
9 | | ||||
10 | class Person : public QObject | ||||
11 | { | ||||
12 | Q_OBJECT | ||||
13 | public: | ||||
14 | class Private; | ||||
15 | private: | ||||
16 | Private * m_d; | ||||
17 | bool m_ownsPrivate; | ||||
18 | Q_PROPERTY(QString userName READ userName WRITE setUserName NOTIFY userNameChanged FINAL) | ||||
19 | explicit Person(bool owned, QObject *parent); | ||||
20 | public: | ||||
21 | explicit Person(QObject *parent = nullptr); | ||||
22 | ~Person(); | ||||
23 | QString userName() const; | ||||
24 | void setUserName(const QString& v); | ||||
25 | Q_INVOKABLE void double_name(); | ||||
26 | Q_INVOKABLE QString greet(const QString& Name) const; | ||||
27 | Q_INVOKABLE quint8 vowels_in_name() const; | ||||
28 | signals: | ||||
29 | void userNameChanged(); | ||||
30 | }; | ||||
31 | #endif // TEST_FUNCTIONS_RUST_H |