Commit 39d32e7d authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Some cleanup

Change-Id: Id54ceb09ada16ef41ebd568f5e8fe0559cc52e76
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 00e9b991
...@@ -366,7 +366,7 @@ void NavigatorTreeModel::setView(NavigatorView *view) ...@@ -366,7 +366,7 @@ void NavigatorTreeModel::setView(NavigatorView *view)
QStringList NavigatorTreeModel::mimeTypes() const QStringList NavigatorTreeModel::mimeTypes() const
{ {
QStringList types({"application/vnd.modelnode.list", const static QStringList types({"application/vnd.modelnode.list",
"application/vnd.bauhaus.itemlibraryinfo", "application/vnd.bauhaus.itemlibraryinfo",
"application/vnd.bauhaus.libraryresource"}); "application/vnd.bauhaus.libraryresource"});
...@@ -502,7 +502,7 @@ void NavigatorTreeModel::handleItemLibraryItemDrop(const QMimeData *mimeData, in ...@@ -502,7 +502,7 @@ void NavigatorTreeModel::handleItemLibraryItemDrop(const QMimeData *mimeData, in
if (foundTarget) { if (foundTarget) {
const ItemLibraryEntry itemLibraryEntry = const ItemLibraryEntry itemLibraryEntry =
createItemLibraryEntryFromMimeData(mimeData->data(QLatin1String("application/vnd.bauhaus.itemlibraryinfo"))); createItemLibraryEntryFromMimeData(mimeData->data("application/vnd.bauhaus.itemlibraryinfo"));
if (!NodeHints::fromItemLibraryEntry(itemLibraryEntry).canBeDroppedInNavigator()) if (!NodeHints::fromItemLibraryEntry(itemLibraryEntry).canBeDroppedInNavigator())
return; return;
......
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