#include "kfileitemmodel.h"
#include "kitemlistview.h"
-#include <KLocale>
+#include <KLocalizedString>
#include <KIO/MetaData>
#include <QDateTime>
#include <KFormat>
#include <QMimeDatabase>
+#include <QLocale>
KFileItemListWidgetInformant::KFileItemListWidgetInformant() :
KStandardItemListWidgetInformant()
}
} else if (role == "date") {
const QDateTime dateTime = roleValue.toDateTime();
- text = KLocale::global()->formatDateTime(dateTime);
+ text = QLocale().toString(dateTime, QLocale::ShortFormat);
} else {
text = KStandardItemListWidgetInformant::roleText(role, values);
}
{
Q_UNUSED(args);
- //KF5 port: remove this line and define TRANSLATION_DOMAIN in CMakeLists.txt instead
-//KLocale::global()->insertCatalog("dolphin");
-
setButtons(KCModule::Default | KCModule::Help);
QVBoxLayout* topLayout = new QVBoxLayout(this);