diff options
| author | Peter Penz <[email protected]> | 2010-05-20 19:24:12 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-05-20 19:24:12 +0000 |
| commit | f1847b01151349f0fe99886987e078f042d8077e (patch) | |
| tree | 35a2b31102ae941d128082c1226475e6c082c7ca /src | |
| parent | 87cd992e85effd14938f67c0671ef2e7cb93a8a7 (diff) | |
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: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=1128953
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinmodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp index 351967f76..137274e0d 100644 --- a/src/dolphinmodel.cpp +++ b/src/dolphinmodel.cpp @@ -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; |
