Browse Source

Mark override members as such

tags/v4.0.0
Albert Astals Cid 1 year 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:
OperationRunner(QObject* parent, OperationStack& ostack);

public:
void run();
void run() override;
qint32 numJobs() const;
qint32 numOperations() const;
qint32 numProgressSub() const;

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

@@ -142,11 +142,11 @@ protected:
m_Device = &d;
}

void paintEvent(QPaintEvent* event);
void resizeEvent(QResizeEvent* event);
void mousePressEvent(QMouseEvent* event);
void mouseMoveEvent(QMouseEvent* event);
void mouseReleaseEvent(QMouseEvent* event);
void paintEvent(QPaintEvent* event) override;
void resizeEvent(QResizeEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
void mouseMoveEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override;

PartWidget& partWidget() {
Q_ASSERT(m_PartWidget);

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

@@ -64,8 +64,8 @@ public:
void setFileSystemColorCode( const std::vector<QColor>& colorCode );

protected:
void paintEvent(QPaintEvent* event);
void resizeEvent(QResizeEvent* event);
void paintEvent(QPaintEvent* event) override;
void resizeEvent(QResizeEvent* event) override;

QColor activeColor(const QColor& col) const;


+ 2
- 2
test/testexternalcommand.cpp View File

@@ -29,7 +29,7 @@
class runcmd : public QThread {
public:

void run()
void run() override
{
ExternalCommand blkidCmd(QStringLiteral("blkid"), {});
blkidCmd.run();
@@ -41,7 +41,7 @@ void run()
class runcmd2 : public QThread {
public:

void run()
void run() override
{
ExternalCommand lsblkCmd(QStringLiteral("lsblk"), { QStringLiteral("--nodeps"), QStringLiteral("--json") });
lsblkCmd.run();

Loading…
Cancel
Save