summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-08-18 15:47:16 +0200
committerMontel Laurent <[email protected]>2015-08-18 15:47:16 +0200
commit76418a3d44a86dd43737a7906eb8660dffe7659a (patch)
tree4d335df0deed98751ff894f2ba21fa4bcbf3dc36
parent17e19efce622b0b53797d138ca9920f82618cb47 (diff)
Port to QLocale
-rw-r--r--akonadiconsole/jobtrackermodel.cpp4
-rw-r--r--akonadiconsole/notificationmodel.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/akonadiconsole/jobtrackermodel.cpp b/akonadiconsole/jobtrackermodel.cpp
index 9d5dc41..fe0d009 100644
--- a/akonadiconsole/jobtrackermodel.cpp
+++ b/akonadiconsole/jobtrackermodel.cpp
@@ -23,7 +23,7 @@
#include "jobtrackermodel.h"
#include "jobtracker.h"
-#include <KLocale>
+#include <QLocale>
#include <QStringList>
#include <QModelIndex>
#include <QDateTime>
@@ -131,7 +131,7 @@ int JobTrackerModel::columnCount(const QModelIndex &parent) const
static QString formatTimeWithMsec(const QTime &time)
{
- return QString(KLocale::global()->formatTime(time, true)
+ return QString(QLocale().toString(time)
+ QStringLiteral(".%1").arg(time.msec(), 3, 10, QLatin1Char('0')));
}
diff --git a/akonadiconsole/notificationmodel.cpp b/akonadiconsole/notificationmodel.cpp
index 04e50f1..bb74d0a 100644
--- a/akonadiconsole/notificationmodel.cpp
+++ b/akonadiconsole/notificationmodel.cpp
@@ -24,7 +24,7 @@
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusPendingCall>
-#include <KLocale>
+#include <QLocale>
#include "akonadiconsole_debug.h"
#include <AkonadiCore/ServerManager>
@@ -246,7 +246,7 @@ QVariant NotificationModel::data(const QModelIndex &index, int role) const
if (role == Qt::DisplayRole) {
switch (index.column()) {
case 0:
- return QString(KLocale::global()->formatTime(block->timestamp.time(), true) +
+ return QString(QLocale().toString(block->timestamp.time()) +
QStringLiteral(".%1").arg(block->timestamp.time().msec(), 3, 10, QLatin1Char('0')));
case 1:
return block->nodes.count();