QNetworkFile: Fix compile error with MinGW/gcc 5.1.

access\qnetworkfile.cpp: In member function 'void QNetworkFile::open()':
access\qnetworkfile.cpp:69:93: error: invalid use of incomplete type 'class QDateTime'
         headerRead(QNetworkRequest::LastModifiedHeader, QVariant::fromValue(fi.lastModified()));

Task-number: QTBUG-45925
Change-Id: I61ff67f9691fe7b6966353e29eeb03d37590d78d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
This commit is contained in:
Friedemann Kleint 2016-03-08 12:22:29 +01:00
parent 8c86d57e32
commit b09ce612fc

View File

@ -41,6 +41,7 @@
#include <QtCore/QDebug> #include <QtCore/QDebug>
#include <QNetworkReply> #include <QNetworkReply>
#include <QtCore/QDateTime>
#include <QtCore/QFileInfo> #include <QtCore/QFileInfo>
#include <QtCore/QMetaObject> #include <QtCore/QMetaObject>
#include <QtCore/QCoreApplication> #include <QtCore/QCoreApplication>