Browse Source

Mark override members as such

tags/v4.0.0
Albert Astals Cid 7 months ago
parent
commit
7f6fa41bce
4 changed files with 10 additions and 10 deletions
  1. 1
    1
      src/core/operationrunner.h
  2. 5
    5
      src/gui/partresizerwidget.h
  3. 2
    2
      src/gui/partwidget.h
  4. 2
    2
      test/testexternalcommand.cpp

+ 1
- 1
src/core/operationrunner.h View File

@@ -44,7 +44,7 @@ public:
44 44
     OperationRunner(QObject* parent, OperationStack& ostack);
45 45
 
46 46
 public:
47
-    void run();
47
+    void run() override;
48 48
     qint32 numJobs() const;
49 49
     qint32 numOperations() const;
50 50
     qint32 numProgressSub() const;

+ 5
- 5
src/gui/partresizerwidget.h View File

@@ -142,11 +142,11 @@ protected:
142 142
         m_Device = &d;
143 143
     }
144 144
 
145
-    void paintEvent(QPaintEvent* event);
146
-    void resizeEvent(QResizeEvent* event);
147
-    void mousePressEvent(QMouseEvent* event);
148
-    void mouseMoveEvent(QMouseEvent* event);
149
-    void mouseReleaseEvent(QMouseEvent* event);
145
+    void paintEvent(QPaintEvent* event) override;
146
+    void resizeEvent(QResizeEvent* event) override;
147
+    void mousePressEvent(QMouseEvent* event) override;
148
+    void mouseMoveEvent(QMouseEvent* event) override;
149
+    void mouseReleaseEvent(QMouseEvent* event) override;
150 150
 
151 151
     PartWidget& partWidget() {
152 152
         Q_ASSERT(m_PartWidget);

+ 2
- 2
src/gui/partwidget.h View File

@@ -64,8 +64,8 @@ public:
64 64
     void setFileSystemColorCode( const std::vector<QColor>& colorCode );
65 65
 
66 66
 protected:
67
-    void paintEvent(QPaintEvent* event);
68
-    void resizeEvent(QResizeEvent* event);
67
+    void paintEvent(QPaintEvent* event) override;
68
+    void resizeEvent(QResizeEvent* event) override;
69 69
 
70 70
     QColor activeColor(const QColor& col) const;
71 71
 

+ 2
- 2
test/testexternalcommand.cpp View File

@@ -29,7 +29,7 @@
29 29
 class runcmd : public QThread {
30 30
 public:
31 31
 
32
-void run()
32
+void run() override
33 33
 {
34 34
     ExternalCommand blkidCmd(QStringLiteral("blkid"), {});
35 35
     blkidCmd.run();
@@ -41,7 +41,7 @@ void run()
41 41
 class runcmd2 : public QThread {
42 42
 public:
43 43
 
44
-void run()
44
+void run() override
45 45
 {
46 46
     ExternalCommand lsblkCmd(QStringLiteral("lsblk"), { QStringLiteral("--nodeps"), QStringLiteral("--json") });
47 47
     lsblkCmd.run();

Loading…
Cancel
Save