1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2023-12-27 15:26:39 +01:00
parent bcfd51276f
commit c6a37594ae
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
#include <QFile> #include <QFile>
#include <QFileInfo>
#include <QNetworkRequest> #include <QNetworkRequest>
#include <QDir> #include <QDir>
#include <QTimerEvent> #include <QTimerEvent>

View File

@ -3,7 +3,9 @@
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QNetworkReply> #include <QNetworkReply>
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
#include <QBasicTimer> #include <QBasicTimer>
#endif // QT 5.15
#include <QUrl> #include <QUrl>
#include <QList> #include <QList>
#include <QHash> #include <QHash>
@ -81,8 +83,6 @@ private slots:
void emitReadReady(); void emitReadReady();
private: private:
class ReplyTimeout;
void insertError(const QUrl &url, QNetworkReply::NetworkError error); void insertError(const QUrl &url, QNetworkReply::NetworkError error);
bool doDownload(const Download &dl, const QList<HTTPHeader> &headers); bool doDownload(const Download &dl, const QList<HTTPHeader> &headers);
void downloadFinished(QNetworkReply *reply); void downloadFinished(QNetworkReply *reply);