add switch bridge

This commit is contained in:
王劲鹏
2021-05-27 18:18:30 +08:00
committed by osborn
parent b6033d6eb6
commit 19cc85cf1c
7 changed files with 52 additions and 1 deletions

View 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);
}