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/DoricDraggableBridge.cpp
2021-07-21 19:03:29 +08:00

13 lines
407 B
C++

#include "DoricDraggableBridge.h"
#include "shader/DoricDraggableNode.h"
DoricDraggableBridge::DoricDraggableBridge(QObject *parent) : QObject(parent) {}
void DoricDraggableBridge::onDrag(QString pointer, double x, double y) {
QObject *object = (QObject *)(pointer.toULongLong());
DoricDraggableNode *draggableNode =
dynamic_cast<DoricDraggableNode *>(object);
draggableNode->onDrag(x, y);
}