add list bind function
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
#include "DoricListBridge.h"
|
||||
#include "shader/list/DoricListNode.h"
|
||||
|
||||
DoricListBridge::DoricListBridge(QObject *parent) : QObject(parent) {}
|
||||
|
||||
void DoricListBridge::bind(QString pointer, QVariant rectangle, int position) {
|
||||
QObject *object = (QObject *)(pointer.toULongLong());
|
||||
DoricListNode *listNode = dynamic_cast<DoricListNode *>(object);
|
||||
listNode->bind(rectangle, position);
|
||||
}
|
||||
|
@@ -10,6 +10,9 @@ class DORIC_EXPORT DoricListBridge : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit DoricListBridge(QObject *parent = nullptr);
|
||||
|
||||
Q_INVOKABLE
|
||||
void bind(QString pointer, QVariant rectangle, int position);
|
||||
};
|
||||
|
||||
#endif // DORICLISTBRIDGE_H
|
||||
|
Reference in New Issue
Block a user