mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-24 13:18: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"));
|
Q_EMIT status (tr ("Suspended"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK (5, 10, 0)
|
||||||
|
case QAudio::InterruptedState:
|
||||||
|
Q_EMIT status (tr ("Interrupted"));
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case QAudio::StoppedState:
|
case QAudio::StoppedState:
|
||||||
if (audioError ())
|
if (audioError ())
|
||||||
{
|
{
|
||||||
|
@ -184,6 +184,12 @@ void SoundOutput::handleStateChanged (QAudio::State newState)
|
|||||||
Q_EMIT status (tr ("Suspended"));
|
Q_EMIT status (tr ("Suspended"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK (5, 10, 0)
|
||||||
|
case QAudio::InterruptedState:
|
||||||
|
Q_EMIT status (tr ("Interrupted"));
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case QAudio::StoppedState:
|
case QAudio::StoppedState:
|
||||||
if (audioError ())
|
if (audioError ())
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include <QCursor>
|
#include <QCursor>
|
||||||
#include <QToolTip>
|
#include <QToolTip>
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
#include <QButtonGroup>
|
||||||
#include <QActionGroup>
|
#include <QActionGroup>
|
||||||
#include <QSplashScreen>
|
#include <QSplashScreen>
|
||||||
#include <QUdpSocket>
|
#include <QUdpSocket>
|
||||||
|
Loading…
Reference in New Issue
Block a user