mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-24 05:08:38 -05:00
Minor changes to support Qt versions >=10
This commit is contained in:
parent
5c3f373c96
commit
b3d6871786
@ -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 ())
|
||||
{
|
||||
|
@ -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 ())
|
||||
{
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include <QCursor>
|
||||
#include <QToolTip>
|
||||
#include <QAction>
|
||||
#include <QButtonGroup>
|
||||
#include <QActionGroup>
|
||||
#include <QSplashScreen>
|
||||
#include <QUdpSocket>
|
||||
|
Loading…
Reference in New Issue
Block a user