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/shader/DoricDraggableNode.h

24 lines
455 B
C
Raw Permalink Normal View History

2021-06-02 10:11:14 +08:00
#ifndef DORICDRAGGABLENODE_H
#define DORICDRAGGABLENODE_H
#include "DoricExport.h"
#include "shader/DoricStackNode.h"
class DORIC_EXPORT DoricDraggableNode : public DoricStackNode {
private:
2021-06-02 11:26:11 +08:00
QString onDragFunction;
2021-06-02 10:11:14 +08:00
public:
using DoricStackNode::DoricStackNode;
QQuickItem *build() override;
virtual void blend(QQuickItem *view, QString name, QJsonValue prop) override;
2021-06-02 11:26:11 +08:00
void onDrag(double x, double y);
2021-06-02 10:11:14 +08:00
};
#endif // DORICDRAGGABLENODE_H