diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-11-02 14:47:21 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-11-03 09:13:45 +0100 |
commit | ca324670ef3dcc03deb8d53420ba06865f297ac6 (patch) | |
tree | 03b4a96cc12d40003d6f30d6589929401a4615d7 /examples | |
parent | eaad981c0bd2de5f74114295d47a8893382a6a7f (diff) |
Remove some dead code
WinRT doesn't exist anymore as a platform we support.
Pick-to: 6.2
Change-Id: I85ebb73b5c24d5415847925b0f3462b29232c6c9
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/audiorecorder/audiorecorder.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/multimedia/audiorecorder/audiorecorder.cpp b/examples/multimedia/audiorecorder/audiorecorder.cpp index c051f082c..d8ad6467d 100644 --- a/examples/multimedia/audiorecorder/audiorecorder.cpp +++ b/examples/multimedia/audiorecorder/audiorecorder.cpp @@ -201,17 +201,7 @@ void AudioRecorder::togglePause() void AudioRecorder::setOutputLocation() { -#ifdef Q_OS_WINRT - // UWP does not allow to store outside the sandbox - const QString cacheDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); - if (!QDir().mkpath(cacheDir)) { - qWarning() << "Failed to create cache directory"; - return; - } - QString fileName = cacheDir + QLatin1String("/output.wav"); -#else QString fileName = QFileDialog::getSaveFileName(); -#endif m_audioRecorder->setOutputLocation(QUrl::fromLocalFile(fileName)); m_outputLocationSet = true; } |