summaryrefslogtreecommitdiffstats
path: root/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-08-01 16:08:24 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-02 07:28:40 +0200
commit78f4577a2dd9a2bdabd51d6791d92c744ece4e95 (patch)
treee3aa958ef140113099388da759fecc709dad9dc5 /src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
parente015f721890a7c4571e961bce96e0ada7bb46b92 (diff)
Use QStandardPaths instead of QDesktopServices
The use of QDesktopServices for getting paths is deprecated in favour of QStandardPaths. Change-Id: I93c4a15dd65962d668c90e78f3f33f357e2450bb Reviewed-by: David Faure <faure@kde.org> Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Diffstat (limited to 'src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp')
-rw-r--r--src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp b/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
index cfcdb104..b7236fac 100644
--- a/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
+++ b/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
@@ -334,9 +334,9 @@ QDir QGstreamerRecorderControl::defaultDir() const
#endif
if (m_session->captureMode() & QGstreamerCaptureSession::Video)
- dirCandidates << QDesktopServices::storageLocation(QDesktopServices::MoviesLocation);
+ dirCandidates << QStandardPaths::writableLocation(QStandardPaths::MoviesLocation);
else
- dirCandidates << QDesktopServices::storageLocation(QDesktopServices::MusicLocation);
+ dirCandidates << QStandardPaths::writableLocation(QStandardPaths::MusicLocation);
dirCandidates << QDir::home().filePath("Documents");
dirCandidates << QDir::home().filePath("My Documents");