split project with app & doric module
This commit is contained in:
15
doric-Qt/example/doric/engine/DoricNativeRequire.h
Normal file
15
doric-Qt/example/doric/engine/DoricNativeRequire.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef NATIVE_REQUIRE_H
|
||||
#define NATIVE_REQUIRE_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class DoricNativeRequire : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DoricNativeRequire(QObject *parent = nullptr) : QObject(parent) {}
|
||||
|
||||
Q_INVOKABLE void function(QString name);
|
||||
};
|
||||
|
||||
#endif // NATIVE_REQUIRE_H
|
||||
Reference in New Issue
Block a user