--- minitube-3.5.1.orig/lib/http/src/localcache.cpp
+++ minitube-3.5.1/lib/http/src/localcache.cpp
@@ -42,8 +42,12 @@ QByteArray LocalCache::hash(const QByteA
 
 bool LocalCache::isCached(const QString &path) {
     bool cached = QFile::exists(path) &&
-                  (maxSeconds == 0 || QFileInfo(path).birthTime().secsTo(
-                                              QDateTime::currentDateTimeUtc()) < maxSeconds);
+         #if QT_VERSION >= 0x0501000
+              (maxSeconds == 0 || QFileInfo(path).birthTime().secsTo(
+         #else
+              (maxSeconds == 0 || QFileInfo(path).created().secsTo(
+         #endif
+                  QDateTime::currentDateTimeUtc()) < maxSeconds);
 #ifndef QT_NO_DEBUG_OUTPUT
     if (!cached) misses++;
 #endif
@@ -117,7 +121,11 @@ void LocalCache::expire() {
     while (it.hasNext()) {
         QString path = it.next();
         QFileInfo info = it.fileInfo();
-        cacheItems.insert(info.birthTime(), path);
+        #if QT_VERSION >= 0x0501000
+            cacheItems.insert(info.birthTime(), path);
+        #else
+            cacheItems.insert(info.created(), path);
+        #endif
         totalSize += info.size();
         qApp->processEvents();
     }
