Minor changes to support Qt versions >=10

This commit is contained in:
Bill Somerville 2019-01-14 19:47:08 +00:00
parent 5c3f373c96
commit b3d6871786
3 changed files with 13 additions and 0 deletions

View File

@ -133,6 +133,12 @@ void SoundInput::handleStateChanged (QAudio::State newState) const
Q_EMIT status (tr ("Suspended"));
break;
#if QT_VERSION >= QT_VERSION_CHECK (5, 10, 0)
case QAudio::InterruptedState:
Q_EMIT status (tr ("Interrupted"));
break;
#endif
case QAudio::StoppedState:
if (audioError ())
{

View File

@ -184,6 +184,12 @@ void SoundOutput::handleStateChanged (QAudio::State newState)
Q_EMIT status (tr ("Suspended"));
break;
#if QT_VERSION >= QT_VERSION_CHECK (5, 10, 0)
case QAudio::InterruptedState:
Q_EMIT status (tr ("Interrupted"));
break;
#endif
case QAudio::StoppedState:
if (audioError ())
{

View File

@ -32,6 +32,7 @@
#include <QCursor>
#include <QToolTip>
#include <QAction>
#include <QButtonGroup>
#include <QActionGroup>
#include <QSplashScreen>
#include <QUdpSocket>