This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/example/doric/utils/DoricMouseAreaBridge.cpp

11 lines
353 B
C++
Raw Permalink Normal View History

2021-03-18 11:49:52 +08:00
#include "DoricMouseAreaBridge.h"
#include "shader/DoricViewNode.h"
2021-03-18 11:49:52 +08:00
DoricMouseAreaBridge::DoricMouseAreaBridge(QObject *parent) : QObject(parent) {}
2021-04-06 16:14:43 +08:00
void DoricMouseAreaBridge::onClick(QString pointer) {
QObject *object = (QObject *)(pointer.toULongLong());
DoricViewNode *viewNode = dynamic_cast<DoricViewNode *>(object);
2021-03-19 18:02:17 +08:00
viewNode->onClick();
2021-03-18 11:49:52 +08:00
}