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