Skip to content

Commit

Permalink
Fix clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlSchwan committed Nov 5, 2024
1 parent fdc2ed3 commit 626dc10
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 8 deletions.
7 changes: 6 additions & 1 deletion core/backends/lan/compositeuploadjob.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ class KDECONNECTCORE_EXPORT CompositeUploadJob : public KCompositeJob
bool doKill() override;

private:
enum { NoPortAvailable = UserDefinedError, SendingNetworkPacketFailed, SocketError, SslError };
enum {
NoPortAvailable = UserDefinedError,
SendingNetworkPacketFailed,
SocketError,
SslError,
};

Server *const m_server;
QSslSocket *m_socket;
Expand Down
5 changes: 4 additions & 1 deletion core/notificationserverinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ class KDECONNECTCORE_EXPORT NotificationServerInfo : public QObject
Q_OBJECT

public:
enum Hint { X_KDE_DISPLAY_APPNAME = 1, X_KDE_ORIGIN_NAME = 2 };
enum Hint {
X_KDE_DISPLAY_APPNAME = 1,
X_KDE_ORIGIN_NAME = 2,
};

Q_DECLARE_FLAGS(Hints, Hint)

Expand Down
6 changes: 5 additions & 1 deletion interfaces/commandsmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ class KDECONNECTINTERFACES_EXPORT CommandsModel : public QAbstractListModel
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)

public:
enum ModelRoles { KeyRole, NameRole, CommandRole };
enum ModelRoles {
KeyRole,
NameRole,
CommandRole,
};

explicit CommandsModel(QObject *parent = nullptr);
~CommandsModel() override;
Expand Down
6 changes: 5 additions & 1 deletion interfaces/remotecommandsmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ class KDECONNECTINTERFACES_EXPORT RemoteCommandsModel : public QAbstractListMode
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)

public:
enum ModelRoles { KeyRole, NameRole, CommandRole };
enum ModelRoles {
KeyRole,
NameRole,
CommandRole,
};

explicit RemoteCommandsModel(QObject *parent = nullptr);
~RemoteCommandsModel() override;
Expand Down
8 changes: 7 additions & 1 deletion interfaces/remotesinksmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ class KDECONNECTINTERFACES_EXPORT RemoteSinksModel : public QAbstractListModel
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)

public:
enum ModelRoles { NameRole, DescriptionRole, MaxVolumeRole, VolumeRole, MutedRole };
enum ModelRoles {
NameRole,
DescriptionRole,
MaxVolumeRole,
VolumeRole,
MutedRole,
};

explicit RemoteSinksModel(QObject *parent = nullptr);
~RemoteSinksModel() override;
Expand Down
5 changes: 4 additions & 1 deletion plugins/battery/batteryplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ class BatteryPlugin : public KdeConnectPlugin
// Keep these values in sync with THRESHOLD* constants in
// kdeconnect-android:BatteryPlugin.java
// see README for their meaning
enum ThresholdBatteryEvent { ThresholdNone = 0, ThresholdBatteryLow = 1 };
enum ThresholdBatteryEvent {
ThresholdNone = 0,
ThresholdBatteryLow = 1,
};

int m_charge = -1;
bool m_isCharging = false;
Expand Down
5 changes: 4 additions & 1 deletion plugins/clipboard/clipboardlistener.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ class ClipboardListener : public QObject
Q_OBJECT

public:
enum ClipboardContentType { ClipboardContentTypeUnknown = 0, ClipboardContentTypePassword = 1 };
enum ClipboardContentType {
ClipboardContentTypeUnknown = 0,
ClipboardContentTypePassword = 1,
};

protected:
ClipboardListener();
Expand Down
8 changes: 7 additions & 1 deletion plugins/mousepad/x11remoteinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
#include <X11/keysym.h>
#include <fakekey/fakekey.h>

enum MouseButtons { LeftMouseButton = 1, MiddleMouseButton = 2, RightMouseButton = 3, MouseWheelUp = 4, MouseWheelDown = 5 };
enum MouseButtons {
LeftMouseButton = 1,
MiddleMouseButton = 2,
RightMouseButton = 3,
MouseWheelUp = 4,
MouseWheelDown = 5,
};

// Translation table to keep in sync within all the implementations
int SpecialKeysMap[] = {
Expand Down

0 comments on commit 626dc10

Please sign in to comment.