rust-qt-binding-generator/tests/test_object_rust.h

29 lines
659 B
C
Raw Normal View History

2017-08-11 08:24:24 -07:00
/* generated by rust_qt_binding_generator */
#ifndef TEST_OBJECT_RUST_H
#define TEST_OBJECT_RUST_H
2018-09-28 13:36:56 -07:00
#include <QtCore/QObject>
#include <QtCore/QAbstractItemModel>
2017-08-11 08:24:24 -07:00
class Person;
2017-08-11 08:24:24 -07:00
class Person : public QObject
{
Q_OBJECT
2017-08-15 04:49:28 -07:00
public:
class Private;
private:
2017-08-26 10:10:18 -07:00
Private * m_d;
bool m_ownsPrivate;
2017-08-11 08:24:24 -07:00
Q_PROPERTY(QString userName READ userName WRITE setUserName NOTIFY userNameChanged FINAL)
2017-08-26 10:10:18 -07:00
explicit Person(bool owned, QObject *parent);
2017-08-11 08:24:24 -07:00
public:
explicit Person(QObject *parent = nullptr);
~Person();
QString userName() const;
void setUserName(const QString& v);
Q_SIGNALS:
2017-08-11 08:24:24 -07:00
void userNameChanged();
};
#endif // TEST_OBJECT_RUST_H