X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/70e938b23ef3238bc69ad01ac85cd9262229ea82..1e27cae3e58f0be65ea6c690f9144b0621829d2b:/src/dolphinmodel.cpp diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp index 434a475f5..1b94e0339 100644 --- a/src/dolphinmodel.cpp +++ b/src/dolphinmodel.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #endif #include @@ -47,7 +48,7 @@ #include #include -static const char *others = I18N_NOOP2("@title:group Name", "Uncategorized"); +static const char *others = I18N_NOOP2("@title:group Name", "Others"); DolphinModel::DolphinModel(QObject *parent) : KDirModel(parent) @@ -245,7 +246,7 @@ QVariant DolphinModel::data(const QModelIndex &index, int role) const retVariant = data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole); if (retVariant == i18nc("@title:group Name", others)) - retVariant = QString(); + retVariant = QString(QChar(QChar::ReplacementCharacter)); break; } @@ -331,7 +332,7 @@ quint32 DolphinModel::ratingForIndex(const QModelIndex& index) const DolphinModel* dolphinModel = static_cast(index.model()); KFileItem item = dolphinModel->itemForIndex(index); if (!item.isNull()) { - const Nepomuk::Resource resource(item.url().url(), Nepomuk::NFO::File()); + const Nepomuk::Resource resource(item.url().url(), Soprano::Vocabulary::Xesam::File()); rating = resource.rating(); } return rating; @@ -349,7 +350,7 @@ QString DolphinModel::tagsForIndex(const QModelIndex& index) const DolphinModel* dolphinModel = static_cast(index.model()); KFileItem item = dolphinModel->itemForIndex(index); if (!item.isNull()) { - const Nepomuk::Resource resource(item.url().url(), Nepomuk::NFO::File()); + const Nepomuk::Resource resource(item.url().url(), Soprano::Vocabulary::Xesam::File()); const QList tags = resource.tags(); QStringList stringList; foreach (const Nepomuk::Tag& tag, tags) {