forked from qt-creator/qt-creator
QmlDesigner: Fix wrong position for reparenting
Change-Id: Ie9d9a739e559d5cfc06849ff3e5c086e9ab2224c DoneBy: Marco Bubke Task-number: QTCREATORBUG-3962 Reviewed-on: http://codereview.qt.nokia.com/958 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -217,6 +217,12 @@ void DragTool::instancesCompleted(const QList<FormEditorItem*> &itemList)
|
||||
QmlDesignerItemLibraryDragAndDrop::CustomDragAndDrop::hide();
|
||||
}
|
||||
|
||||
void DragTool::instancesParentChanged(const QList<FormEditorItem *> &itemList)
|
||||
{
|
||||
m_moveManipulator.synchronizeInstanceParent(itemList);
|
||||
}
|
||||
|
||||
|
||||
void DragTool::clearMoveDelay()
|
||||
{
|
||||
if (!m_blockMove)
|
||||
@@ -381,6 +387,7 @@ void DragTool::dragMoveEvent(QGraphicsSceneDragDropEvent * event)
|
||||
QTimer::singleShot(1000, m_timerHandler.data(), SLOT(clearMoveDelay()));
|
||||
}
|
||||
}
|
||||
|
||||
if (event->mimeData()->hasFormat("application/vnd.bauhaus.libraryresource")) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user