#include <KProtocolInfo>
#include <KLocalizedString>
#include <QStandardPaths>
-#include <KUser>
#include <KAboutData>
#include "placesitem.h"
#include <QAction>
{
const PlacesItem* item = placesItem(index);
if (item && item->device().is<Solid::OpticalDisc>()) {
- return new QAction(QIcon::fromTheme(QStringLiteral("media-eject")), i18nc("@item", "Eject '%1'", item->text()), 0);
+ return new QAction(QIcon::fromTheme(QStringLiteral("media-eject")), i18nc("@item", "Eject"), 0);
}
return 0;
QString iconName;
QString text;
- const QString label = item->text();
if (device.is<Solid::OpticalDisc>()) {
- text = i18nc("@item", "Release '%1'", label);
+ text = i18nc("@item", "Release");
} else if (removable || hotPluggable) {
- text = i18nc("@item", "Safely Remove '%1'", label);
+ text = i18nc("@item", "Safely Remove");
iconName = QStringLiteral("media-eject");
} else {
- text = i18nc("@item", "Unmount '%1'", label);
+ text = i18nc("@item", "Unmount");
iconName = QStringLiteral("media-eject");
}
props.setVisibleRoles({"text"});
} else if (data.url.scheme() == QLatin1String("timeline")) {
props.setViewMode(DolphinView::DetailsView);
- props.setVisibleRoles({"text", "date"});
+ props.setVisibleRoles({"text", "modificationtime"});
}
}
}
// i18nc call is done after reading the bookmark. The reason why the i18nc call is not
// done here is because otherwise switching the language would not result in retranslating the
// bookmarks.
- m_systemBookmarks.append(SystemBookmarkData(QUrl::fromLocalFile(KUser().homeDir()),
+ m_systemBookmarks.append(SystemBookmarkData(QUrl::fromLocalFile(QDir::homePath()),
QStringLiteral("user-home"),
I18N_NOOP2("KFile System Bookmarks", "Home")));
m_systemBookmarks.append(SystemBookmarkData(QUrl(QStringLiteral("remote:/")),