Changeset 14163 for trunk/qt/favicon.cc
- Timestamp:
- Aug 17, 2013, 4:22:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/favicon.cc
r14150 r14163 15 15 #include <QNetworkReply> 16 16 #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 18 23 19 24 #include "favicon.h" … … 41 46 Favicons :: getCacheDir( ) 42 47 { 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 44 55 return QDir( base ).absoluteFilePath( "favicons" ); 45 56 }
Note: See TracChangeset
for help on using the changeset viewer.