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

13 lines
407 B
C++
Raw Normal View History

2021-06-02 11:26:11 +08:00
#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);
}