diff options
author | Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp> | 2016-11-30 20:11:48 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp> | 2016-11-30 20:11:48 +0900 |
commit | f8ca548fa047968383e9275ead76eacce90fd0a8 (patch) | |
tree | f442935d6e2bc0964ef10760d6e6486b5bfd233e /sample-qml/calledbyqml.h | |
parent | 75a4e94d7610db25c98f05cdda9491f4e7c0a4db (diff) |
Add sample qml application
It is sample application(HVAC).
This app is used for debuging, for reference of HomeScreen API use and so on.
Signed-off-by: Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp>
Diffstat (limited to 'sample-qml/calledbyqml.h')
-rw-r--r-- | sample-qml/calledbyqml.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sample-qml/calledbyqml.h b/sample-qml/calledbyqml.h new file mode 100644 index 0000000..fbb5ef5 --- /dev/null +++ b/sample-qml/calledbyqml.h @@ -0,0 +1,22 @@ +#ifndef CALLEDBYQML_H +#define CALLEDBYQML_H +#include <QObject> + +class CalledByQml : public QObject +{ + Q_OBJECT + +public: + explicit CalledByQml(QObject *parent = 0); + Q_INVOKABLE int consoleout(); + Q_INVOKABLE int showup(); + +signals: + +public slots: + void refresh() { + qDebug("Called the C++ slot"); + } +}; + +#endif // CALLEDBYQML_H |