Commit eb3e2e88 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Using no deprecated enum Qt::MiddleButton

parent 8786bfc0
...@@ -39,11 +39,11 @@ KGpgSignNodePrivate::KGpgSignNodePrivate(const QStringList &sl) ...@@ -39,11 +39,11 @@ KGpgSignNodePrivate::KGpgSignNodePrivate(const QStringList &sl)
m_revocation = (sl.at(0) == QLatin1String("rev")); m_revocation = (sl.at(0) == QLatin1String("rev"));
if (sl.count() < 6) if (sl.count() < 6)
return; return;
m_creation = QDateTime::fromTime_t(sl.at(5).toUInt()); m_creation = QDateTime::fromSecsSinceEpoch(sl.at(5).toUInt());
if (sl.count() < 7) if (sl.count() < 7)
return; return;
if (!sl.at(6).isEmpty()) if (!sl.at(6).isEmpty())
m_expiration = QDateTime::fromTime_t(sl.at(6).toUInt()); m_expiration = QDateTime::fromSecsSinceEpoch(sl.at(6).toUInt());
if (sl.count() < 11) if (sl.count() < 11)
return; return;
m_local = sl.at(10).endsWith(QLatin1Char( 'l' )); m_local = sl.at(10).endsWith(QLatin1Char( 'l' ));
......
...@@ -47,7 +47,7 @@ KGpgUatNodePrivate::KGpgUatNodePrivate(const KGpgKeyNode *parent, const unsigned ...@@ -47,7 +47,7 @@ KGpgUatNodePrivate::KGpgUatNodePrivate(const KGpgKeyNode *parent, const unsigned
{ {
if (sl.count() < 6) if (sl.count() < 6)
return; return;
m_creation = QDateTime::fromTime_t(sl.at(5).toUInt()); m_creation = QDateTime::fromSecsSinceEpoch(sl.at(5).toUInt());
} }
QPixmap QPixmap
......
...@@ -275,7 +275,7 @@ QDateTime toDateTime(const QString &s) ...@@ -275,7 +275,7 @@ QDateTime toDateTime(const QString &s)
if (s.contains(QLatin1Char('T'))) if (s.contains(QLatin1Char('T')))
ret = QDateTime::fromString(s, QLatin1String("yyyyMMddTHHmmss")); ret = QDateTime::fromString(s, QLatin1String("yyyyMMddTHHmmss"));
else else
ret = QDateTime::fromTime_t(s.toUInt()); ret = QDateTime::fromSecsSinceEpoch(s.toUInt());
return ret; return ret;
} }
......
...@@ -88,7 +88,7 @@ SearchResult::SearchResult(const QString &line) ...@@ -88,7 +88,7 @@ SearchResult::SearchResult(const QString &line)
m_bits = parts.at(3).toUInt(); m_bits = parts.at(3).toUInt();
m_creation.setTime_t(parts.at(4).toULongLong()); m_creation.setTime_t(parts.at(4).toULongLong());
m_expired = !parts.at(5).isEmpty() && m_expired = !parts.at(5).isEmpty() &&
QDateTime::fromTime_t(parts.at(5).toULongLong()) <= QDateTime::currentDateTimeUtc(); QDateTime::fromSecsSinceEpoch(parts.at(5).toULongLong()) <= QDateTime::currentDateTimeUtc();
m_revoked = (parts.at(6) == QLatin1String( "r" )); m_revoked = (parts.at(6) == QLatin1String( "r" ));
m_validPub = true; m_validPub = true;
......
...@@ -120,13 +120,13 @@ KGpgDelSign::boolQuestion(const QString &line) ...@@ -120,13 +120,13 @@ KGpgDelSign::boolQuestion(const QString &line)
if (signode == nullptr) if (signode == nullptr)
return KGpgTransaction::BA_NO; return KGpgTransaction::BA_NO;
const QDateTime creation = QDateTime::fromTime_t(parts[5].toUInt()); const QDateTime creation = QDateTime::fromSecsSinceEpoch(parts[5].toUInt());
if (creation != signode->getCreation()) if (creation != signode->getCreation())
return KGpgTransaction::BA_NO; return KGpgTransaction::BA_NO;
QDateTime sigexp; QDateTime sigexp;
if (!parts[6].isEmpty() && (parts[6] != QLatin1String("0"))) if (!parts[6].isEmpty() && (parts[6] != QLatin1String("0")))
sigexp = QDateTime::fromTime_t(parts[6].toUInt()); sigexp = QDateTime::fromSecsSinceEpoch(parts[6].toUInt());
if (sigexp != signode->getExpiration()) if (sigexp != signode->getExpiration())
return KGpgTransaction::BA_NO; return KGpgTransaction::BA_NO;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment