mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-15 18:01:11 +00:00
Port away from KLocale
This commit is contained in:
parent
13a4c5ed4c
commit
092ddf7702
|
@ -21,11 +21,12 @@
|
|||
#include "kfileitemmodel.h"
|
||||
#include "kitemlistview.h"
|
||||
|
||||
#include <KLocale>
|
||||
#include <KLocalizedString>
|
||||
#include <KIO/MetaData>
|
||||
#include <QDateTime>
|
||||
#include <KFormat>
|
||||
#include <QMimeDatabase>
|
||||
#include <QLocale>
|
||||
|
||||
KFileItemListWidgetInformant::KFileItemListWidgetInformant() :
|
||||
KStandardItemListWidgetInformant()
|
||||
|
@ -81,7 +82,7 @@ QString KFileItemListWidgetInformant::roleText(const QByteArray& role,
|
|||
}
|
||||
} 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);
|
||||
}
|
||||
|
|
|
@ -40,9 +40,6 @@ DolphinGeneralConfigModule::DolphinGeneralConfigModule(QWidget* parent, const QV
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue