Changeset 14150 for trunk/qt/favicon.cc


Ignore:
Timestamp:
Jul 27, 2013, 9:58:14 PM (9 years ago)
Author:
jordan
Message:

support qt5 in transmission-qt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/favicon.cc

    r11522 r14150  
    1111 */
    1212
    13 #include <QDesktopServices>
    1413#include <QDir>
    1514#include <QNetworkAccessManager>
    1615#include <QNetworkReply>
    1716#include <QNetworkRequest>
     17#include <QStandardPaths>
    1818
    1919#include "favicon.h"
     
    4141Favicons :: getCacheDir( )
    4242{
    43     const QString base = QDesktopServices::storageLocation( QDesktopServices::CacheLocation );
     43    const QString base = QStandardPaths::writableLocation (QStandardPaths::CacheLocation);
    4444    return QDir( base ).absoluteFilePath( "favicons" );
    4545}
Note: See TracChangeset for help on using the changeset viewer.