Remove all conditional checks for Qt 4.x (#5505)
authorKiril Vladimiroff <kiril@vladimiroff.org>
Fri, 21 Apr 2017 16:13:32 +0000 (19:13 +0300)
committerMarkus Goetz <markus@woboq.com>
Fri, 21 Apr 2017 16:13:32 +0000 (18:13 +0200)
src/libsync/account.cpp
src/libsync/propagateupload.cpp

index d81a1e5e6c886e681f71e5c6218ba1027c2afbc4..4e558d2e3e6552f2b5a1a9a14ffdb2f28558cab5 100644 (file)
@@ -215,9 +215,7 @@ QNetworkAccessManager *Account::networkAccessManager()
 QNetworkReply *Account::sendRequest(const QByteArray &verb, const QUrl &url, QNetworkRequest req, QIODevice *data)
 {
     req.setUrl(url);
-#if QT_VERSION > QT_VERSION_CHECK(4, 8, 4)
     req.setSslConfiguration(this->getOrCreateSslConfig());
-#endif
     if (verb == "HEAD" && !data) {
         return _am->head(req);
     } else if (verb == "GET" && !data) {
@@ -248,7 +246,7 @@ QSslConfiguration Account::getOrCreateSslConfig()
     // if setting the client certificate fails, you will probably get an error similar to this:
     //  "An internal error number 1060 happened. SSL handshake failed, client certificate was requested: SSL error: sslv3 alert handshake failure"
     QSslConfiguration sslConfig = QSslConfiguration::defaultConfiguration();
-    
+
 #if QT_VERSION > QT_VERSION_CHECK(5, 2, 0)
     // Try hard to re-use session for different requests
     sslConfig.setSslOption(QSsl::SslOptionDisableSessionTickets, false);
@@ -447,7 +445,7 @@ void Account::setNonShib(bool nonShib)
         _davPath = Theme::instance()->webDavPathNonShib();
     } else {
         _davPath = Theme::instance()->webDavPath();
-    } 
+    }
 }
 
 
index 66f8bf0ef464b1290b34535e8866c9b235f5e2cc..97261644ba16e7465988d60cab061f0079d32534 100644 (file)
@@ -89,10 +89,7 @@ void PUTFileJob::start() {
     // For Qt versions not including https://codereview.qt-project.org/110150
     // Also do the runtime check if compiled with an old Qt but running with fixed one.
     // (workaround disabled on windows and mac because the binaries we ship have patched qt)
-#if QT_VERSION < QT_VERSION_CHECK(4, 8, 7)
-    if (QLatin1String(qVersion()) < QLatin1String("4.8.7"))
-        connect(_device, SIGNAL(wasReset()), this, SLOT(slotSoftAbort()));
-#elif QT_VERSION > QT_VERSION_CHECK(5, 0, 0) && QT_VERSION < QT_VERSION_CHECK(5, 4, 2) && !defined Q_OS_WIN && !defined Q_OS_MAC
+#if QT_VERSION < QT_VERSION_CHECK(5, 4, 2) && !defined Q_OS_WIN && !defined Q_OS_MAC
     if (QLatin1String(qVersion()) < QLatin1String("5.4.2"))
         connect(_device, SIGNAL(wasReset()), this, SLOT(slotSoftAbort()));
 #endif