apply slide item
This commit is contained in:
13
doric-Qt/example/doric/utils/DoricSlideItemBridge.cpp
Normal file
13
doric-Qt/example/doric/utils/DoricSlideItemBridge.cpp
Normal 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();
|
||||
}
|
19
doric-Qt/example/doric/utils/DoricSlideItemBridge.h
Normal file
19
doric-Qt/example/doric/utils/DoricSlideItemBridge.h
Normal 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
|
Reference in New Issue
Block a user