Commit b013637f authored by Tim Jenssen's avatar Tim Jenssen
Browse files

QmlDesigner: remove delayed drag and drop call



Change-Id: I6d2c1c2f25ba88f3c6f0af9b52968a9bd005cd85
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 6bb5903c
......@@ -78,7 +78,7 @@ Rectangle {
property int pressedY
onPressed: {
rootView.startDragAndDropDelayed(itemLibraryEntry)
rootView.startDragAndDrop(itemLibraryEntry)
}
}
}
......@@ -369,14 +369,10 @@ void ItemLibraryWidget::setResourcePath(const QString &resourcePath)
updateSearch();
}
void ItemLibraryWidget::startDragAndDropDelayed(QVariant itemLibraryId)
void ItemLibraryWidget::startDragAndDrop(QVariant itemLibraryId)
{
m_currentitemLibraryEntry = itemLibraryId.value<ItemLibraryEntry>();
QTimer::singleShot(0, this, SLOT(startDragAndDrop()));
}
void ItemLibraryWidget::startDragAndDrop()
{
QMimeData *mimeData = m_itemLibraryModel->getMimeData(m_currentitemLibraryEntry);
QDrag *drag = new QDrag(this);
......
......@@ -96,8 +96,7 @@ public slots:
void setResourcePath(const QString &resourcePath);
void startDragAndDropDelayed(QVariant itemLibId);
void startDragAndDrop();
void startDragAndDrop(QVariant itemLibId);
void setModel(Model *model);
......
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