Add override keyword to virtual functions.
This commit is contained in:
parent
92d4ea5d95
commit
1832059353
|
@ -36,10 +36,10 @@ public:
|
|||
~ConfigureOptionsDialog();
|
||||
|
||||
protected Q_SLOTS:
|
||||
virtual void updateSettings();
|
||||
virtual void updateWidgetsDefault();
|
||||
virtual bool hasChanged();
|
||||
virtual bool isDefault();
|
||||
virtual void updateSettings() override;
|
||||
virtual void updateWidgetsDefault() override;
|
||||
virtual bool hasChanged() override;
|
||||
virtual bool isDefault() override;
|
||||
void onComboDefaultFileSystemActivated(int) {
|
||||
settingsChangedSlot();
|
||||
}
|
||||
|
|
|
@ -82,8 +82,8 @@ protected Q_SLOTS:
|
|||
void updateReport(bool force = false);
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
void closeEvent(QCloseEvent* e) override;
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
|
||||
void setupConnections();
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ protected:
|
|||
}
|
||||
|
||||
protected Q_SLOTS:
|
||||
void accept();
|
||||
void accept() override;
|
||||
|
||||
private:
|
||||
Partition& partition() {
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
~FileSystemSupportDialog();
|
||||
|
||||
public:
|
||||
QSize sizeHint() const;
|
||||
QSize sizeHint() const override;
|
||||
|
||||
protected Q_SLOTS:
|
||||
void onButtonRescanClicked();
|
||||
|
|
|
@ -27,8 +27,8 @@ public:
|
|||
FormattedSpinBox(QWidget* parent = nullptr) : QDoubleSpinBox(parent) {}
|
||||
|
||||
public:
|
||||
virtual QString textFromValue(double value) const;
|
||||
virtual double valueFromText(const QString& text) const;
|
||||
virtual QString textFromValue(double value) const override;
|
||||
virtual double valueFromText(const QString& text) const override;
|
||||
|
||||
private:
|
||||
QString stripped(const QString &t, int *pos = 0) const;
|
||||
|
|
|
@ -43,8 +43,8 @@ protected:
|
|||
const Partition& destPartition() const {
|
||||
return m_DestPartition;
|
||||
}
|
||||
virtual bool canGrow() const;
|
||||
virtual bool canShrink() const {
|
||||
virtual bool canGrow() const override;
|
||||
virtual bool canShrink() const override {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,26 +42,26 @@ public:
|
|||
~NewDialog();
|
||||
|
||||
protected Q_SLOTS:
|
||||
void accept();
|
||||
void accept() override;
|
||||
void onRoleChanged(bool);
|
||||
void onFilesystemChanged(int);
|
||||
void onLabelChanged(const QString& newLabel);
|
||||
|
||||
protected:
|
||||
void setupConnections();
|
||||
void setupDialog();
|
||||
void setupConnections() override;
|
||||
void setupDialog() override;
|
||||
void updateHideAndShow();
|
||||
void updateFileSystem(FileSystem::Type t);
|
||||
PartitionRole::Roles partitionRoles() const {
|
||||
return m_PartitionRoles;
|
||||
}
|
||||
virtual bool canGrow() const {
|
||||
virtual bool canGrow() const override {
|
||||
return true;
|
||||
}
|
||||
virtual bool canShrink() const {
|
||||
virtual bool canShrink() const override {
|
||||
return true;
|
||||
}
|
||||
virtual bool canMove() const {
|
||||
virtual bool canMove() const override {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,10 +40,10 @@ class PartTableWidget : public PartWidgetBase
|
|||
|
||||
public:
|
||||
PartTableWidget(QWidget* parent);
|
||||
virtual qint32 borderWidth() const {
|
||||
virtual qint32 borderWidth() const override {
|
||||
return 0; /**< @return border width */
|
||||
}
|
||||
virtual qint32 borderHeight() const {
|
||||
virtual qint32 borderHeight() const override {
|
||||
return 0; /**< @return border height */
|
||||
}
|
||||
|
||||
|
@ -68,9 +68,9 @@ Q_SIGNALS:
|
|||
void itemDoubleClicked(const PartWidget*);
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent* event) override;
|
||||
|
||||
const PartitionTable* partitionTable() const {
|
||||
return m_PartitionTable;
|
||||
|
|
|
@ -48,15 +48,15 @@ public:
|
|||
}
|
||||
|
||||
public Q_SLOTS:
|
||||
virtual void accept();
|
||||
virtual void reject();
|
||||
virtual void accept() override;
|
||||
virtual void reject() override;
|
||||
|
||||
protected:
|
||||
virtual bool canGrow() const;
|
||||
virtual bool canShrink() const;
|
||||
virtual bool canMove() const;
|
||||
virtual void setupDialog();
|
||||
virtual void setDirty();
|
||||
virtual bool canGrow() const override;
|
||||
virtual bool canShrink() const override;
|
||||
virtual bool canMove() const override;
|
||||
virtual void setupDialog() override;
|
||||
virtual void setDirty() override;
|
||||
void rollback();
|
||||
void setResizedFirstSector(qint64 s) {
|
||||
m_ResizedFirstSector = s;
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
ScanProgressDialog(QWidget* parent);
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent* e);
|
||||
virtual void showEvent(QShowEvent* e) override;
|
||||
|
||||
public:
|
||||
void setProgress(quint32 p) {
|
||||
|
|
Loading…
Reference in New Issue