CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
flowviewwrapper.h
Go to the documentation of this file.
1#ifndef FLOWVIEWWRAPPER_H
2#define FLOWVIEWWRAPPER_H
3
4#include <nodes/FlowScene>
5#include <nodes/FlowView>
6
7struct FlowViewWrapper : public QtNodes::FlowView {
8 FlowViewWrapper(QtNodes::FlowScene* scene)
9 : QtNodes::FlowView(scene)
10 , _scene(scene)
11 {
12 setAcceptDrops(true);
13 }
14
15 void dragMoveEvent(QDragMoveEvent *event) override;
16 void dropEvent(QDropEvent *event) override;
17 void addNode(const QString& modelName, const QPoint& pos);
18private:
19 QtNodes::FlowScene* _scene;
20};
21
22#endif // FLOWVIEWWRAPPER_H
Definition pcinterface.h:7
Definition flowviewwrapper.h:7
FlowViewWrapper(QtNodes::FlowScene *scene)
Definition flowviewwrapper.h:8
void addNode(const QString &modelName, const QPoint &pos)
Definition flowviewwrapper.cpp:21
void dragMoveEvent(QDragMoveEvent *event) override
Definition flowviewwrapper.cpp:7
void dropEvent(QDropEvent *event) override
Definition flowviewwrapper.cpp:9