way. Anyway, detailed and columns view were buggy since it did never accept the dragging events, so you were never able to drop on the detailed or column view.
CCMAIL: peter.penz@gmx.at
CCMAIL: faure@kde.org
svn path=/trunk/KDE/kdebase/apps/; revision=750155
}
}
setDirtyRegion(m_dropRect);
+
+ bool destIsDir = false;
+ if (index.isValid()) {
+ const KFileItem item = itemForIndex(index);
+ if (!item.isNull() && item.isDir()) {
+ m_dropRect = visualRect(index);
+ destIsDir = true;
+ }
+ } else { // dropping on viewport
+ destIsDir = true;
+ }
+ if (destIsDir && event->mimeData()->hasUrls()) {
+ event->acceptProposedAction();
+ }
}
void DolphinColumnWidget::dropEvent(QDropEvent* event)
}
setDirtyRegion(m_dropRect);
}
+
+ bool destIsDir = false;
+ if (index.isValid()) {
+ const KFileItem item = itemForIndex(index);
+ if (!item.isNull() && item.isDir()) {
+ m_dropRect = visualRect(index);
+ destIsDir = true;
+ }
+ } else { // dropping on viewport
+ destIsDir = true;
+ }
+ if (destIsDir && event->mimeData()->hasUrls()) {
+ event->acceptProposedAction();
+ }
}
void DolphinDetailsView::dropEvent(QDropEvent* event)