Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sedictious committed Aug 25, 2019
1 parent 07139ee commit 28fe85f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/gui/basegraphgl.cpp
Expand Up @@ -401,8 +401,8 @@ void BaseGraphGL::mouseReleaseEvent(QMouseEvent *e)
return;
}

Node& prevNode = findNode(m_posEntered);
Node& node = findNode(e->localPos());
Node prevNode = findNode(m_posEntered);
Node node = findNode(e->localPos());
if (e->button() == Qt::LeftButton) {
bool fNodeSelected;
Node prevSelection = selectedNode();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/basegraphgl.h
Expand Up @@ -61,7 +61,7 @@ class GraphGLInterface
protected:
virtual ~GraphGLInterface() = default;
virtual void paintFrame(QPainter& painter) const = 0;
virtual Node findNode(const QPointF& pos) const = 0;
virtual Node findNode(const QPointF& pos) = 0;
virtual Node selectNode(const QPointF& pos, bool center) = 0;
virtual bool selectNode(const Node& node, bool center) = 0;
virtual bool deselectNode(const Node& node) = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/graphview.cpp
Expand Up @@ -101,7 +101,7 @@ CacheStatus GraphView::refreshCache()
return CacheStatus::Ready;
}

Node GraphView::findNode(const QPointF& pos) const
Node GraphView::findNode(const QPointF& pos)
{
if (m_cacheStatus != CacheStatus::Ready) {
return Node();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/graphview.h
Expand Up @@ -40,7 +40,7 @@ public slots:

protected:
void paintFrame(QPainter& painter) const override;
Node findNode(const QPointF& pos) const override;
Node findNode(const QPointF& pos) override;
Node selectNode(const QPointF &pos, bool center) override;
bool selectNode(const Node& node, bool center) override;
bool deselectNode(const Node& node) override;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gridview.cpp
Expand Up @@ -100,7 +100,7 @@ void GridView::paintFrame(QPainter& painter) const
}
}

Node GridView::findNode(const QPointF& pos) const
Node GridView::findNode(const QPointF& pos)
{
if (m_cacheStatus != CacheStatus::Ready) {
return Node();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gridview.h
Expand Up @@ -34,7 +34,7 @@ class GridView : public BaseGraphGL
protected:
void paintFrame(QPainter& painter) const override;
Node selectNode(const QPointF& pos, bool center) override;
Node findNode(const QPointF& pos) const override;
Node findNode(const QPointF& pos) override;
bool selectNode(const Node& node, bool center) override;
bool deselectNode(const Node& node) override;
Node selectedNode() const override;
Expand Down

0 comments on commit 28fe85f

Please sign in to comment.