refs #937 Resolved clazy warnings: Q_ENUMS is deprecated.

This commit is contained in:
Mathew Sutcliffe
2017-04-15 01:30:18 +01:00
parent a8302b310e
commit 045b149164
4 changed files with 6 additions and 6 deletions

View File

@@ -55,7 +55,6 @@ namespace BlackCore
class BLACKCORE_EXPORT INetwork : public QObject class BLACKCORE_EXPORT INetwork : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(ConnectionStatus)
protected: protected:
/*! /*!
@@ -103,6 +102,7 @@ namespace BlackCore
Connecting, //!< Connection initiated but not established Connecting, //!< Connection initiated but not established
Connected //!< Connection established Connected //!< Connection established
}; };
Q_ENUM(ConnectionStatus)
/*! /*!
* Convert a ConnectionStatus to a string. * Convert a ConnectionStatus to a string.

View File

@@ -26,7 +26,6 @@ namespace BlackCore
class BLACKCORE_EXPORT IVoiceChannel : public QObject class BLACKCORE_EXPORT IVoiceChannel : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(ConnectionStatus)
public: public:
//! Com status //! Com status
@@ -39,6 +38,7 @@ namespace BlackCore
Connected, //!< Connection established Connected, //!< Connection established
ConnectingFailed //!< Failed to connect ConnectingFailed //!< Failed to connect
}; };
Q_ENUM(ConnectionStatus)
//! Constructor //! Constructor
IVoiceChannel(QObject *parent = nullptr) : QObject(parent) {} IVoiceChannel(QObject *parent = nullptr) : QObject(parent) {}

View File

@@ -36,16 +36,16 @@ namespace BlackGui
class BLACKGUI_EXPORT CLedWidget : public QWidget class BLACKGUI_EXPORT CLedWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(LedColor)
Q_ENUMS(LedShape)
public: public:
//! Colors //! Colors
//! \remarks NoColor has to be last entry //! \remarks NoColor has to be last entry
enum LedColor { Red = 0, Green, Yellow, Grey, Orange, Purple, Blue, Black, NoColor}; enum LedColor { Red = 0, Green, Yellow, Grey, Orange, Purple, Blue, Black, NoColor};
Q_ENUM(LedColor)
//! Shapes //! Shapes
enum LedShape { Circle = 0, Square, Triangle, Rounded}; enum LedShape { Circle = 0, Square, Triangle, Rounded};
Q_ENUM(LedShape)
//! States //! States
enum State { On, Off, TriState }; enum State { On, Off, TriState };

View File

@@ -45,8 +45,6 @@ namespace BlackMisc
class BLACKMISC_EXPORT CSimConnectUtilities : public QObject class BLACKMISC_EXPORT CSimConnectUtilities : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(SIMCONNECT_EXCEPTION)
Q_ENUMS(SIMCONNECT_SURFACE)
public: public:
//! Filename of the file //! Filename of the file
@@ -121,6 +119,7 @@ namespace BlackMisc
Tarmac, Tarmac,
Wright_flyer_track Wright_flyer_track
}; };
Q_ENUM(SIMCONNECT_SURFACE)
//! SimConnect exceptions. //! SimConnect exceptions.
enum SIMCONNECT_EXCEPTION enum SIMCONNECT_EXCEPTION
@@ -164,6 +163,7 @@ namespace BlackMisc
SIMCONNECT_EXCEPTION_OBJECT_ATC, SIMCONNECT_EXCEPTION_OBJECT_ATC,
SIMCONNECT_EXCEPTION_OBJECT_SCHEDULE SIMCONNECT_EXCEPTION_OBJECT_SCHEDULE
}; };
Q_ENUM(SIMCONNECT_EXCEPTION)
//! Lights for FSX/P3D "LIGHT ON STATES" //! Lights for FSX/P3D "LIGHT ON STATES"
//! \sa http://www.prepar3d.com/SDKv2/LearningCenter/utilities/variables/simulation_variables.html //! \sa http://www.prepar3d.com/SDKv2/LearningCenter/utilities/variables/simulation_variables.html