apply slide item

This commit is contained in:
王劲鹏
2021-05-31 19:28:45 +08:00
committed by osborn
parent 46e28577d9
commit 94045f11bf
7 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#include "DoricSlideItemBridge.h"
#include "shader/slider/DoricSlideItemNode.h"
DoricSlideItemBridge::DoricSlideItemBridge(QObject *parent) : QObject(parent) {}
void DoricSlideItemBridge::apply(QString pointer) {
QObject *object = (QObject *)(pointer.toULongLong());
DoricSlideItemNode *slideItemNode =
dynamic_cast<DoricSlideItemNode *>(object);
slideItemNode->apply();
}

View File

@@ -0,0 +1,19 @@
#ifndef DORICSLIDEITEMBRIDGE_H
#define DORICSLIDEITEMBRIDGE_H
#include <QObject>
#include <QVariant>
#include "DoricExport.h"
class DORIC_EXPORT DoricSlideItemBridge : public QObject {
Q_OBJECT
public:
explicit DoricSlideItemBridge(QObject *parent = nullptr);
Q_INVOKABLE
void apply(QString pointer);
signals:
};
#endif // DORICSLIDEITEMBRIDGE_H