Changeset 14163 for trunk/qt/favicon.cc


Ignore:
Timestamp:
Aug 17, 2013, 4:22:56 PM (9 years ago)
Author:
jordan
Message:

(trunk, qt) #5465: restore Qt 4.6 support, patch by mike.did

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/favicon.cc

    r14150 r14163  
    1515#include <QNetworkReply>
    1616#include <QNetworkRequest>
    17 #include <QStandardPaths>
     17
     18#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
     19 #include <QDesktopServices>
     20#else
     21 #include <QStandardPaths>
     22#endif
    1823
    1924#include "favicon.h"
     
    4146Favicons :: getCacheDir( )
    4247{
    43     const QString base = QStandardPaths::writableLocation (QStandardPaths::CacheLocation);
     48    const QString base =
     49#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
     50        QDesktopServices::storageLocation( QDesktopServices::CacheLocation );
     51#else
     52        QStandardPaths::writableLocation( QStandardPaths::CacheLocation );
     53#endif
     54
    4455    return QDir( base ).absoluteFilePath( "favicons" );
    4556}
Note: See TracChangeset for help on using the changeset viewer.