Skip to content

Commit

Permalink
make API more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Rakhuba committed Mar 7, 2019
1 parent cbb082f commit 653c07b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion include/nodes/internal/ConnectionGraphicsObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <QtCore/QUuid>

#include <QtWidgets/QGraphicsObject>
#include "Export.hpp"

class QGraphicsSceneMouseEvent;

Expand All @@ -15,7 +16,7 @@ class ConnectionGeometry;
class Node;

/// Graphic Object for connection. Adds itself to scene
class ConnectionGraphicsObject
class NODE_EDITOR_PUBLIC ConnectionGraphicsObject
: public QGraphicsObject
{
Q_OBJECT
Expand Down
8 changes: 4 additions & 4 deletions include/nodes/internal/FlowView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class NODE_EDITOR_PUBLIC FlowView

public Q_SLOTS:

void scaleUp();
virtual void scaleUp();

void scaleDown();
virtual void scaleDown();

void deleteSelectedNodes();
virtual void deleteSelectedNodes();

protected:

Expand All @@ -55,7 +55,7 @@ public Q_SLOTS:

protected:

FlowScene * scene();
FlowScene * scene();

private:

Expand Down
3 changes: 2 additions & 1 deletion include/nodes/internal/NodeGraphicsObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "NodeGeometry.hpp"
#include "NodeState.hpp"
#include "Export.hpp"

class QGraphicsProxyWidget;

Expand All @@ -18,7 +19,7 @@ class FlowItemEntry;

/// Class reacts on GUI events, mouse clicks and
/// forwards painting operation.
class NodeGraphicsObject : public QGraphicsObject
class NODE_EDITOR_PUBLIC NodeGraphicsObject : public QGraphicsObject
{
Q_OBJECT

Expand Down

0 comments on commit 653c07b

Please sign in to comment.