Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/plugins/folder/foldermodel.cpp
Show First 20 Lines • Show All 998 Lines • ▼ Show 20 Line(s) | 995 | if (m_dirModel->dirLister()->url() == currentUrl) { | |||
---|---|---|---|---|---|
999 | // TODO: Optimize to emit contiguous groups. | 999 | // TODO: Optimize to emit contiguous groups. | ||
1000 | emit dataChanged(first, last, QVector<int>() << BlankRole); | 1000 | emit dataChanged(first, last, QVector<int>() << BlankRole); | ||
1001 | } | 1001 | } | ||
1002 | } | 1002 | } | ||
1003 | 1003 | | |||
1004 | static bool isDropBetweenSharedViews(const QList<QUrl> &urls, const QUrl &folderUrl) | 1004 | static bool isDropBetweenSharedViews(const QList<QUrl> &urls, const QUrl &folderUrl) | ||
1005 | { | 1005 | { | ||
1006 | for (const auto &url : urls) { | 1006 | for (const auto &url : urls) { | ||
1007 | if (folderUrl != url.adjusted(QUrl::RemoveFilename)) { | 1007 | if (folderUrl != url.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash)) { | ||
1008 | return false; | 1008 | return false; | ||
1009 | } | 1009 | } | ||
1010 | } | 1010 | } | ||
1011 | return true; | 1011 | return true; | ||
1012 | } | 1012 | } | ||
1013 | 1013 | | |||
1014 | void FolderModel::drop(QQuickItem *target, QObject* dropEvent, int row) | 1014 | void FolderModel::drop(QQuickItem *target, QObject* dropEvent, int row) | ||
1015 | { | 1015 | { | ||
▲ Show 20 Lines • Show All 953 Lines • Show Last 20 Lines |