Remove reduntant virtual keywords.

This commit is contained in:
Andrius Štikonas 2016-05-17 18:03:28 +01:00
parent c01d63cb02
commit 374f88fa5f
7 changed files with 21 additions and 21 deletions

View File

@ -36,10 +36,10 @@ public:
~ConfigureOptionsDialog();
protected Q_SLOTS:
virtual void updateSettings() override;
virtual void updateWidgetsDefault() override;
virtual bool hasChanged() override;
virtual bool isDefault() override;
void updateSettings() override;
void updateWidgetsDefault() override;
bool hasChanged() override;
bool isDefault() override;
void onComboDefaultFileSystemActivated(int) {
settingsChangedSlot();
}

View File

@ -27,8 +27,8 @@ public:
FormattedSpinBox(QWidget* parent = nullptr) : QDoubleSpinBox(parent) {}
public:
virtual QString textFromValue(double value) const override;
virtual double valueFromText(const QString& text) const override;
QString textFromValue(double value) const override;
double valueFromText(const QString& text) const override;
private:
QString stripped(const QString &t, int *pos = 0) const;

View File

@ -43,8 +43,8 @@ protected:
const Partition& destPartition() const {
return m_DestPartition;
}
virtual bool canGrow() const override;
virtual bool canShrink() const override {
bool canGrow() const override;
bool canShrink() const override {
return false;
}

View File

@ -56,13 +56,13 @@ protected:
PartitionRole::Roles partitionRoles() const {
return m_PartitionRoles;
}
virtual bool canGrow() const override {
bool canGrow() const override {
return true;
}
virtual bool canShrink() const override {
bool canShrink() const override {
return true;
}
virtual bool canMove() const override {
bool canMove() const override {
return true;
}

View File

@ -40,10 +40,10 @@ class PartTableWidget : public PartWidgetBase
public:
PartTableWidget(QWidget* parent);
virtual qint32 borderWidth() const override {
qint32 borderWidth() const override {
return 0; /**< @return border width */
}
virtual qint32 borderHeight() const override {
qint32 borderHeight() const override {
return 0; /**< @return border height */
}

View File

@ -48,15 +48,15 @@ public:
}
public Q_SLOTS:
virtual void accept() override;
virtual void reject() override;
void accept() override;
void reject() override;
protected:
virtual bool canGrow() const override;
virtual bool canShrink() const override;
virtual bool canMove() const override;
virtual void setupDialog() override;
virtual void setDirty() override;
bool canGrow() const override;
bool canShrink() const override;
bool canMove() const override;
void setupDialog() override;
void setDirty() override;
void rollback();
void setResizedFirstSector(qint64 s) {
m_ResizedFirstSector = s;

View File

@ -31,7 +31,7 @@ public:
ScanProgressDialog(QWidget* parent);
protected:
virtual void showEvent(QShowEvent* e) override;
void showEvent(QShowEvent* e) override;
public:
void setProgress(quint32 p) {