21 lines
405 B
C++
21 lines
405 B
C++
#ifndef DEMOBRIDGE_H
|
|
#define DEMOBRIDGE_H
|
|
|
|
#include <QObject>
|
|
#include <QQmlApplicationEngine>
|
|
|
|
class DoricDemoBridge : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
explicit DoricDemoBridge(QQmlApplicationEngine *engine,
|
|
QObject *parent = nullptr);
|
|
|
|
Q_INVOKABLE
|
|
void navigate(QVariant source, QVariant alias);
|
|
|
|
private:
|
|
QQmlApplicationEngine *mEngine;
|
|
};
|
|
|
|
#endif // DEMOBRIDGE_H
|