summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius Štikonas <andrius@stikonas.eu>2016-07-13 23:37:09 (GMT)
committerAndrius Štikonas <andrius@stikonas.eu>2016-07-13 23:37:09 (GMT)
commite0f2e9ee8cd7de6edc145104aeffab3f910f85d6 (patch)
tree52b9a03994d12086e444c9652ff95c1837c01820
parentf3ba1367e273974d553b4b87628f0ec1dc68dd2e (diff)
Port away from KDateTime.
-rw-r--r--model/kgpgsearchresultmodel.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/model/kgpgsearchresultmodel.cpp b/model/kgpgsearchresultmodel.cpp
index 2d82df8..066d95b 100644
--- a/model/kgpgsearchresultmodel.cpp
+++ b/model/kgpgsearchresultmodel.cpp
@@ -13,10 +13,10 @@
#include "kgpgsearchresultmodel.h"
-#include <KDateTime>
#include <KDebug>
#include <KLocalizedString>
+#include <QDateTime>
#include <QScopedPointer>
#include <QString>
#include <QStringList>
@@ -45,8 +45,7 @@ public:
QVariant summary() const;
private:
- KDateTime m_expiry;
- KDateTime m_creation;
+ QDateTime m_creation;
bool m_revoked;
unsigned int m_bits;
KgpgCore::KgpgKeyAlgo m_algo;
@@ -127,12 +126,12 @@ SearchResult::summary() const
return i18nc("example: ID abc123xy, 1024-bit RSA key, created Jan 12 2009, revoked",
"ID %1, %2-bit %3 key, created %4, revoked", m_fingerprint,
m_bits, KgpgCore::Convert::toString(m_algo),
- m_creation.toString(KDateTime::LocalDate));
+ m_creation.toString(Qt::SystemLocaleShortDate));
} else {
return i18nc("example: ID abc123xy, 1024-bit RSA key, created Jan 12 2009",
"ID %1, %2-bit %3 key, created %4", m_fingerprint,
m_bits, KgpgCore::Convert::toString(m_algo),
- m_creation.toString(KDateTime::LocalDate));
+ m_creation.toString(Qt::SystemLocaleShortDate));
}
}