forked from qt-creator/qt-creator
QmlJs: prevent "copy" icon in outline drag and drop
Copying items in the outline tree is not allowed, so the icon it is not shown while dragging with the CTRL button pressed. Task-number: QTCREATORBUG-13450 Change-Id: Ibfcf954c273051ef03112d11ee6a3457530802bb Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -430,6 +430,11 @@ Qt::DropActions QmlOutlineModel::supportedDragActions() const
|
||||
return Qt::MoveAction | Qt::CopyAction;
|
||||
}
|
||||
|
||||
Qt::DropActions QmlOutlineModel::supportedDropActions() const
|
||||
{
|
||||
return Qt::MoveAction;
|
||||
}
|
||||
|
||||
|
||||
Document::Ptr QmlOutlineModel::document() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user