Browse Source

Move TYPE_INVERT to bottom of enum (#1880)

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Haris Gušić 3 years ago
parent
commit
d8d428f568
1 changed files with 13 additions and 11 deletions
  1. 13 11
      src/widgets/capture/capturetoolbutton.h

+ 13 - 11
src/widgets/capture/capturetoolbutton.h

@@ -18,6 +18,8 @@ class CaptureToolButton : public CaptureButton
 public:
     // Don't forget to add the new types to CaptureButton::iterableButtonTypes
     // in the .cpp and the order value in the private array buttonTypeOrder
+    // NOTE: Add new entries to the BOTTOM so existing user configurations don't
+    // get messed up.
     enum ButtonType
     {
         TYPE_PENCIL = 0,
@@ -32,17 +34,17 @@ public:
         TYPE_UNDO = 9,
         TYPE_COPY = 10,
         TYPE_SAVE = 11,
-        TYPE_INVERT = 12,
-        TYPE_EXIT = 13,
-        TYPE_IMAGEUPLOADER = 14,
-        TYPE_OPEN_APP = 15,
-        TYPE_PIXELATE = 16,
-        TYPE_REDO = 17,
-        TYPE_PIN = 18,
-        TYPE_TEXT = 19,
-        TYPE_CIRCLECOUNT = 20,
-        TYPE_SIZEINCREASE = 21,
-        TYPE_SIZEDECREASE = 22,
+        TYPE_EXIT = 12,
+        TYPE_IMAGEUPLOADER = 13,
+        TYPE_OPEN_APP = 14,
+        TYPE_PIXELATE = 15,
+        TYPE_REDO = 16,
+        TYPE_PIN = 17,
+        TYPE_TEXT = 18,
+        TYPE_CIRCLECOUNT = 19,
+        TYPE_SIZEINCREASE = 20,
+        TYPE_SIZEDECREASE = 21,
+        TYPE_INVERT = 22,
     };
     Q_ENUM(ButtonType)