nodeview: further improved auto-positioning system

This commit is contained in:
itsmattkc
2020-05-08 19:20:24 +10:00
parent 12672aae7c
commit 1efd4e9f99
4 changed files with 44 additions and 8 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ NodeView::NodeView(QWidget *parent) :
drop_edge_(nullptr)
{
setScene(&scene_);
setDragMode(RubberBandDrag);
SetDefaultDragMode(RubberBandDrag);
setContextMenuPolicy(Qt::CustomContextMenu);
setMouseTracking(true);
setRenderHint(QPainter::Antialiasing);