diff --git a/src/gui/mainwindow.h b/src/gui/mainwindow.h index 8615006..9fc5f19 100644 --- a/src/gui/mainwindow.h +++ b/src/gui/mainwindow.h @@ -70,8 +70,8 @@ protected: void enableActions(); - void closeEvent(QCloseEvent*); - void changeEvent(QEvent* event); + void closeEvent(QCloseEvent*) override; + void changeEvent(QEvent* event) override; void setSavedSelectedDeviceNode(const QString& s) { m_SavedSelectedDeviceNode = s; diff --git a/src/gui/smartdialogwidget.cpp b/src/gui/smartdialogwidget.cpp index 8b8ff02..5ee3f53 100644 --- a/src/gui/smartdialogwidget.cpp +++ b/src/gui/smartdialogwidget.cpp @@ -34,7 +34,7 @@ class SmartAttrDelegate : public QStyledItemDelegate public: SmartAttrDelegate() : QStyledItemDelegate() {} - virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; + virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override; }; void SmartAttrDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const