Commit df3312f4 authored by Laurent Montel's avatar Laurent Montel 😁

Revert "Using no deprecated enum Qt::MiddleButton"

This reverts commit eb3e2e88.
parent eb3e2e88
......@@ -39,11 +39,11 @@ KGpgSignNodePrivate::KGpgSignNodePrivate(const QStringList &sl)
m_revocation = (sl.at(0) == QLatin1String("rev"));
if (sl.count() < 6)
return;
m_creation = QDateTime::fromSecsSinceEpoch(sl.at(5).toUInt());
m_creation = QDateTime::fromTime_t(sl.at(5).toUInt());
if (sl.count() < 7)
return;
if (!sl.at(6).isEmpty())
m_expiration = QDateTime::fromSecsSinceEpoch(sl.at(6).toUInt());
m_expiration = QDateTime::fromTime_t(sl.at(6).toUInt());
if (sl.count() < 11)
return;
m_local = sl.at(10).endsWith(QLatin1Char( 'l' ));
......
......@@ -47,7 +47,7 @@ KGpgUatNodePrivate::KGpgUatNodePrivate(const KGpgKeyNode *parent, const unsigned
{
if (sl.count() < 6)
return;
m_creation = QDateTime::fromSecsSinceEpoch(sl.at(5).toUInt());
m_creation = QDateTime::fromTime_t(sl.at(5).toUInt());
}
QPixmap
......
......@@ -275,7 +275,7 @@ QDateTime toDateTime(const QString &s)
if (s.contains(QLatin1Char('T')))
ret = QDateTime::fromString(s, QLatin1String("yyyyMMddTHHmmss"));
else
ret = QDateTime::fromSecsSinceEpoch(s.toUInt());
ret = QDateTime::fromTime_t(s.toUInt());
return ret;
}
......
......@@ -88,7 +88,7 @@ SearchResult::SearchResult(const QString &line)
m_bits = parts.at(3).toUInt();
m_creation.setTime_t(parts.at(4).toULongLong());
m_expired = !parts.at(5).isEmpty() &&
QDateTime::fromSecsSinceEpoch(parts.at(5).toULongLong()) <= QDateTime::currentDateTimeUtc();
QDateTime::fromTime_t(parts.at(5).toULongLong()) <= QDateTime::currentDateTimeUtc();
m_revoked = (parts.at(6) == QLatin1String( "r" ));
m_validPub = true;
......
......@@ -120,13 +120,13 @@ KGpgDelSign::boolQuestion(const QString &line)
if (signode == nullptr)
return KGpgTransaction::BA_NO;
const QDateTime creation = QDateTime::fromSecsSinceEpoch(parts[5].toUInt());
const QDateTime creation = QDateTime::fromTime_t(parts[5].toUInt());
if (creation != signode->getCreation())
return KGpgTransaction::BA_NO;
QDateTime sigexp;
if (!parts[6].isEmpty() && (parts[6] != QLatin1String("0")))
sigexp = QDateTime::fromSecsSinceEpoch(parts[6].toUInt());
sigexp = QDateTime::fromTime_t(parts[6].toUInt());
if (sigexp != signode->getExpiration())
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