[PATCH 9/9] Remove QFSFileEngine useage.

Jon Severinsson jon at severinsson.net
Sat Oct 6 19:15:51 BST 2012


QFSFileEngine has been removed from Qt5.
---
 phonon/mediasource.cpp |    6 +++---
 1 fil ändrad, 3 tillägg(+), 3 borttagningar(-)

diff --git a/phonon/mediasource.cpp b/phonon/mediasource.cpp
index 9e35094..14235cb 100644
--- a/phonon/mediasource.cpp
+++ b/phonon/mediasource.cpp
@@ -28,7 +28,7 @@
 
 #include <QtCore/QFileInfo>
 #include <QtCore/QFile>
-#include <QtCore/QFSFileEngine>
+// #include <QtCore/QFSFileEngine>
 
 namespace Phonon
 {
@@ -48,8 +48,8 @@ MediaSource::MediaSource(const QString &filename)
 {
     const QFileInfo fileInfo(filename);
     if (fileInfo.exists()) {
-        bool localFs = QAbstractFileEngine::LocalDiskFlag & QFSFileEngine(filename).fileFlags(QAbstractFileEngine::LocalDiskFlag);
-        if (localFs && !filename.startsWith(QLatin1String(":/")) && !filename.startsWith(QLatin1String("qrc://"))) {
+//        bool localFs = QAbstractFileEngine::LocalDiskFlag & QFSFileEngine(filename).fileFlags(QAbstractFileEngine::LocalDiskFlag);
+        if (/* localFs && */ !filename.startsWith(QLatin1String(":/")) && !filename.startsWith(QLatin1String("qrc://"))) {
             d->url = QUrl::fromLocalFile(fileInfo.absoluteFilePath());
         } else {
 #ifndef QT_NO_PHONON_ABSTRACTMEDIASTREAM
-- 
1.7.10.4

_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel at kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


More information about the kde-multimedia mailing list