1
0
mirror of https://invent.kde.org/network/krdc synced 2024-07-05 17:29:34 +00:00

Q_ENUMS -> Q_ENUM

This commit is contained in:
Albert Astals Cid 2019-09-22 01:18:04 +02:00
parent 3fcfe82e3d
commit 2447d78410
3 changed files with 6 additions and 11 deletions

View File

@ -60,14 +60,13 @@ class KRDCCORE_EXPORT RemoteView : public QWidget
public:
Q_ENUMS(Quality)
enum Quality {
Unknown,
High,
Medium,
Low
};
Q_ENUM(Quality)
/**
* Describes the state of a local cursor, if there is such a concept in the backend.
@ -77,14 +76,13 @@ public:
* is a dot and the remote cursor is the 'real' cursor, usually an arrow.
*/
Q_ENUMS(DotCursorState)
enum DotCursorState {
CursorOn, ///< Always show local cursor (and the remote one).
CursorOff, ///< Never show local cursor, only the remote one.
/// Try to measure the lag and enable the local cursor if the latency is too high.
CursorAuto
};
Q_ENUM(DotCursorState)
/**
* State of the connection. The state of the connection is returned
@ -101,8 +99,6 @@ public:
* (If you add/remove a state here, you must adapt it)
*/
Q_ENUMS(RemoteStatus)
enum RemoteStatus {
Connecting = 0,
Authenticating = 1,
@ -111,8 +107,7 @@ public:
Disconnecting = -1,
Disconnected = -2
};
Q_ENUMS(ErrorCode)
Q_ENUM(RemoteStatus)
enum ErrorCode {
None = 0,
@ -125,6 +120,7 @@ public:
ServerBlocked,
Authentication
};
Q_ENUM(ErrorCode)
~RemoteView() override;

View File

@ -42,8 +42,8 @@ public:
FloatingToolBar(QWidget *parent, QWidget *anchorWidget);
~FloatingToolBar() override;
Q_ENUMS(Side)
enum Side { Left = 0, Top = 1, Right = 2, Bottom = 3 };
Q_ENUM(Side)
void addAction(QAction *action);
void setSide(Side side);

View File

@ -93,13 +93,12 @@ class VncClientThread: public QThread
Q_OBJECT
public:
Q_ENUMS(ColorDepth)
enum ColorDepth {
bpp32,
bpp16,
bpp8
};
Q_ENUM(ColorDepth)
explicit VncClientThread(QObject *parent = nullptr);
~VncClientThread() override;