Commit 66f60362 authored by Eike Ziller's avatar Eike Ziller
Browse files

Items were removed from QML overview when dragging onto editor view

Change-Id: I6e8b3cbedb78df08066f87d4aa9922145cfa151c
Task-number: QTCREATORBUG-14496
Reviewed-by: default avatarDaniel Teske <>
Reviewed-by: default avatarMarco Benelli <>
Reviewed-by: default avatarAlessandro Portale <>
parent 31c65456
......@@ -135,6 +135,12 @@ EditorView::EditorView(SplitterOrView *parentSplitterOrView, QWidget *parent) :
m_widgetEditorMap.insert(empty, 0);
auto dropSupport = new FileDropSupport(this, [this](QDropEvent *event) {
// do not accept move events except from other editor views (i.e. their tool bars)
// otherwise e.g. item views that support moving items within themselves would
// also "move" the item into the editor view, i.e. the item would be removed from the
// item view
if (!qobject_cast<EditorToolBar*>(event->source()))
return event->source() != m_toolBar; // do not accept drops on ourselves
connect(dropSupport, &FileDropSupport::filesDropped,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment