Fixed compile; QDesktopServices -> QStandardPaths
authorRohan McGovern <rohan.mcgovern@nokia.com>
Mon, 24 Oct 2011 03:04:56 +0000 (13:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 03:59:41 +0000 (05:59 +0200)
Broken by qtbase dfa24768a3243eda68d91f573050bf23f96da2dd.

Change-Id: Ie0d79eaee5c6fedfaacae69800f6aec9190f83db
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp

index 49aa3fb..db64ba6 100644 (file)
@@ -55,7 +55,7 @@
 #include <QtCore/qtimer.h>
 #include <QtCore/qdebug.h>
 #include <QtCore/qdir.h>
-#include <QtGui/qdesktopservices.h>
+#include <QtCore/qstandardpaths.h>
 
 #if defined(Q_WS_MAEMO_6) || (GST_VERSION_MICRO > 20)
 #define USE_PLAYBIN2
@@ -1572,7 +1572,7 @@ void QGstreamerPlayerSession::handleElementAdded(GstBin *bin, GstElement *elemen
         session->m_haveQueueElement = true;
 
         if (session->property("mediaDownloadEnabled").toBool()) {
-            QDir cacheDir(QDesktopServices::storageLocation(QDesktopServices::CacheLocation));
+            QDir cacheDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation));
             QString cacheLocation = cacheDir.absoluteFilePath("gstmedia__XXXXXX");
 #ifdef DEBUG_PLAYBIN
             qDebug() << "set queue2 temp-location" << cacheLocation;