fix Qt version check

QT_VERSION_MAJOR, not QT_MAJOR_VERSION, and fixed stray #elif
This commit is contained in:
Mark Brand 2018-06-13 16:51:16 +02:00
parent 3d87c6306e
commit 5bdfa6a5dd

View File

@ -294,9 +294,9 @@ QString MimeMessage::toString()
mime += "References: <" + mInReplyTo + ">\r\n";
}
#if QT_MAJOR_VERSION < 5 //Qt4 workaround since RFC2822Date isn't defined
#if QT_VERSION_MAJOR < 5 //Qt4 workaround since RFC2822Date isn't defined
mime += QString("Date: %1\r\n").arg(QDateTime::currentDateTime().toString("dd MMM yyyy hh:mm:ss +/-TZ"));
#elif //Qt5 supported
#else //Qt5 supported
mime += QString("Date: %1\r\n").arg(QDateTime::currentDateTime().toString(Qt::RFC2822Date));
#endif //support RFC2822Date