mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Return a value for the "LocalPathOrUrl" column.
The values for the columns "LinkDestination" and "LocalPathOrUrl" should be moved from DolphinModel to KDirModel, as otherwise the added Information enums in KFileItemDelegate would not make much sense (I'll provide a patch on the reviewboard next week). CCMAIL: trueg@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=1128953
This commit is contained in:
parent
87cd992e85
commit
f1847b0115
|
@ -102,7 +102,9 @@ QVariant DolphinModel::data(const QModelIndex& index, int role) const
|
|||
}
|
||||
|
||||
case DolphinModel::LocalPathOrUrl:
|
||||
// TODO:
|
||||
const KDirModel *dirModel = qobject_cast<const KDirModel*>(index.model());
|
||||
const KFileItem item = dirModel->itemForIndex(index);
|
||||
return item.localPath();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue