Skip to content

Commit 653c07b

Browse files
author
Yury Rakhuba
committed
make API more flexible
1 parent cbb082f commit 653c07b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

include/nodes/internal/ConnectionGraphicsObject.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <QtCore/QUuid>
44

55
#include <QtWidgets/QGraphicsObject>
6+
#include "Export.hpp"
67

78
class QGraphicsSceneMouseEvent;
89

@@ -15,7 +16,7 @@ class ConnectionGeometry;
1516
class Node;
1617

1718
/// Graphic Object for connection. Adds itself to scene
18-
class ConnectionGraphicsObject
19+
class NODE_EDITOR_PUBLIC ConnectionGraphicsObject
1920
: public QGraphicsObject
2021
{
2122
Q_OBJECT

include/nodes/internal/FlowView.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class NODE_EDITOR_PUBLIC FlowView
2929

3030
public Q_SLOTS:
3131

32-
void scaleUp();
32+
virtual void scaleUp();
3333

34-
void scaleDown();
34+
virtual void scaleDown();
3535

36-
void deleteSelectedNodes();
36+
virtual void deleteSelectedNodes();
3737

3838
protected:
3939

@@ -55,7 +55,7 @@ public Q_SLOTS:
5555

5656
protected:
5757

58-
FlowScene * scene();
58+
FlowScene * scene();
5959

6060
private:
6161

include/nodes/internal/NodeGraphicsObject.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "NodeGeometry.hpp"
99
#include "NodeState.hpp"
10+
#include "Export.hpp"
1011

1112
class QGraphicsProxyWidget;
1213

@@ -18,7 +19,7 @@ class FlowItemEntry;
1819

1920
/// Class reacts on GUI events, mouse clicks and
2021
/// forwards painting operation.
21-
class NodeGraphicsObject : public QGraphicsObject
22+
class NODE_EDITOR_PUBLIC NodeGraphicsObject : public QGraphicsObject
2223
{
2324
Q_OBJECT
2425

0 commit comments

Comments
 (0)