Skip to content

Commit

Permalink
Gui: Fix copying elements in the tree view by holding CTRL key
Browse files Browse the repository at this point in the history
In older versions it was possible to copy elements with drag and drop by holding the CTRL key. Since v0.20 or v0.21 this wasn't possible any
more so that elements are always moved.

Note: Copying is only allowed for elements that have a parent object.
  • Loading branch information
wwmayer authored and chennes committed Dec 23, 2024
1 parent c0210c2 commit 9cd919d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Gui/Tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ TreeWidget::TreeWidget(const char* name, QWidget* parent)

this->setDragEnabled(true);
this->setAcceptDrops(true);
this->setDragDropMode(QTreeWidget::InternalMove);
this->setColumnCount(3);
this->setItemDelegate(new TreeWidgetItemDelegate(this));
this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
Expand Down

0 comments on commit 9cd919d

Please sign in to comment.