add switch bridge
This commit is contained in:
12
doric-Qt/example/doric/utils/DoricSwitchBridge.cpp
Normal file
12
doric-Qt/example/doric/utils/DoricSwitchBridge.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "DoricSwitchBridge.h"
|
||||
|
||||
#include "shader/DoricSwitchNode.h"
|
||||
|
||||
DoricSwitchBridge::DoricSwitchBridge(QObject *parent) : QObject(parent) {}
|
||||
|
||||
void DoricSwitchBridge::onSwitch(QString pointer, bool checked) {
|
||||
QObject *object = (QObject *)(pointer.toULongLong());
|
||||
DoricSwitchNode *switchNode = dynamic_cast<DoricSwitchNode *>(object);
|
||||
|
||||
switchNode->onSwitch(checked);
|
||||
}
|
Reference in New Issue
Block a user