compile++

svn path=/trunk/KDE/kdebase/apps/; revision=699864
This commit is contained in:
Peter Penz 2007-08-14 06:07:59 +00:00
parent 8c7a1e5f25
commit 466ffaabbf

View file

@ -259,7 +259,7 @@ quint32 DolphinSortFilterProxyModel::ratingForIndex(const QModelIndex& index)
const KDirModel* dirModel = static_cast<const KDirModel*>(index.model());
KFileItem item = dirModel->itemForIndex(index);
if (!item.isNull()) {
const Nepomuk::Resource resource(item->url().url(), Nepomuk::NFO::File());
const Nepomuk::Resource resource(item.url().url(), Nepomuk::NFO::File());
rating = resource.rating();
}
return rating;
@ -277,7 +277,7 @@ QString DolphinSortFilterProxyModel::tagsForIndex(const QModelIndex& index)
const KDirModel* dirModel = static_cast<const KDirModel*>(index.model());
KFileItem item = dirModel->itemForIndex(index);
if (!item.isNull()) {
const Nepomuk::Resource resource(item->url().url(), Nepomuk::NFO::File());
const Nepomuk::Resource resource(item.url().url(), Nepomuk::NFO::File());
const QList<Nepomuk::Tag> tags = resource.tags();
QStringList stringList;
foreach (const Nepomuk::Tag& tag, tags) {