summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/mockbackend/qmockaudiooutput.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-06-11 13:40:32 +0200
committerLars Knoll <lars.knoll@qt.io>2021-06-16 10:03:10 +0200
commit634894a8a83b021386da8c2672628b0b26185ef3 (patch)
tree40ad48c0dbcc019a959d17154a11518d81b2693a /tests/auto/unit/mockbackend/qmockaudiooutput.h
parent57b7a6cf44fdf867abc8598b3850df962dfef029 (diff)
Get rid of QAudio::Role
This was only ever implemented to some extent for Android. Remove for now, as it's not really an important feature and can't be implemented properly on many of our platforms. Change-Id: Idc4d21c857380088ca6d10d59a0e05d192899534 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/unit/mockbackend/qmockaudiooutput.h')
-rw-r--r--tests/auto/unit/mockbackend/qmockaudiooutput.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/unit/mockbackend/qmockaudiooutput.h b/tests/auto/unit/mockbackend/qmockaudiooutput.h
index 02245a7a3..30cc46604 100644
--- a/tests/auto/unit/mockbackend/qmockaudiooutput.h
+++ b/tests/auto/unit/mockbackend/qmockaudiooutput.h
@@ -58,16 +58,6 @@ class QMockAudioOutput : public QPlatformAudioOutput
{
public:
QMockAudioOutput(QAudioOutput *qq) : QPlatformAudioOutput(qq) {}
-
- virtual QList<QAudio::Role> supportedAudioRoles() const {
- if (!hasAudioRole)
- return {};
- return QList<QAudio::Role>() << QAudio::MusicRole
- << QAudio::AlarmRole
- << QAudio::NotificationRole;
- }
-
- bool hasAudioRole = true;
};
QT_END_NAMESPACE