nodeview: improved user manual positioning

This commit is contained in:
itsmattkc
2021-05-28 13:29:51 +10:00
parent 24ce8f8446
commit 2162e9d8f8
7 changed files with 50 additions and 56 deletions
+1 -7
View File
@@ -40,9 +40,8 @@ class NodeViewEdge;
*
* To retrieve the NodeViewItem for a certain Node, use NodeView::NodeToUIObject().
*/
class NodeViewItem : public QObject, public QGraphicsRectItem
class NodeViewItem : public QGraphicsRectItem
{
Q_OBJECT
public:
NodeViewItem(QGraphicsItem* parent = nullptr);
@@ -112,9 +111,6 @@ public:
void SetHighlightedIndex(int index);
signals:
void NodePositionChanged(const QPointF &pos);
protected:
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
@@ -178,8 +174,6 @@ private:
QPointF cached_node_pos_;
bool dont_signal_;
};
}