Commit 33a2a86a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Q_DECL_OVERRIDE

parent 778bd256
......@@ -69,7 +69,7 @@ class AppearanceSettings : public QWidget, private Ui::AppearanceSettings
protected:
void showEvent(QShowEvent* event);
void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
private Q_SLOTS:
......
......@@ -32,8 +32,8 @@ class SkinListDelegate : public QAbstractItemDelegate
explicit SkinListDelegate(QObject* parent = 0);
~SkinListDelegate();
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex &index) const;
virtual QSize sizeHint (const QStyleOptionViewItem& option, const QModelIndex& index) const;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex &index) const Q_DECL_OVERRIDE;
QSize sizeHint (const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
private:
......
......@@ -87,10 +87,10 @@ class MainWindow : public QMainWindow
protected:
virtual void paintEvent(QPaintEvent*);
virtual void moveEvent(QMoveEvent*);
virtual void changeEvent(QEvent* event);
virtual bool event(QEvent* event);
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
void moveEvent(QMoveEvent*) Q_DECL_OVERRIDE;
void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
bool event(QEvent* event) Q_DECL_OVERRIDE;
virtual bool queryClose();
......
......@@ -81,20 +81,20 @@ class TabBar : public QWidget
protected:
virtual void resizeEvent(QResizeEvent*);
virtual void paintEvent(QPaintEvent*);
virtual void wheelEvent(QWheelEvent*);
virtual void keyPressEvent(QKeyEvent*);
virtual void mousePressEvent(QMouseEvent*);
virtual void mouseReleaseEvent(QMouseEvent*);
virtual void mouseMoveEvent(QMouseEvent*);
virtual void dragMoveEvent(QDragMoveEvent*);
virtual void dragEnterEvent(QDragEnterEvent*);
virtual void dragLeaveEvent(QDragLeaveEvent*);
virtual void dropEvent(QDropEvent*);
virtual void mouseDoubleClickEvent(QMouseEvent*);
virtual void contextMenuEvent(QContextMenuEvent*);
virtual void leaveEvent(QEvent*);
void resizeEvent(QResizeEvent*) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
void wheelEvent(QWheelEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void dragMoveEvent(QDragMoveEvent*) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent*) Q_DECL_OVERRIDE;
void dragLeaveEvent(QDragLeaveEvent*) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent*) Q_DECL_OVERRIDE;
void mouseDoubleClickEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void contextMenuEvent(QContextMenuEvent*) Q_DECL_OVERRIDE;
void leaveEvent(QEvent*) Q_DECL_OVERRIDE;
void setTabTitleInteractive(int sessionId, const QString& newTitle);
......
......@@ -40,7 +40,7 @@ class Terminal : public QObject
explicit Terminal(QWidget* parent = 0);
~Terminal();
bool eventFilter(QObject* watched, QEvent* event);
bool eventFilter(QObject* watched, QEvent* event) Q_DECL_OVERRIDE;
int id() { return m_terminalId; }
const QString title() { return m_title; }
......
......@@ -53,8 +53,8 @@ class TitleBar : public QWidget
protected:
virtual void resizeEvent(QResizeEvent*);
virtual void paintEvent(QPaintEvent*);
void resizeEvent(QResizeEvent*) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
private:
......
......@@ -92,9 +92,9 @@ class VisualEventOverlay : public QWidget
protected:
virtual void showEvent(QShowEvent*);
virtual void hideEvent(QHideEvent*);
virtual void paintEvent(QPaintEvent*);
void showEvent(QShowEvent*) Q_DECL_OVERRIDE;
void hideEvent(QHideEvent*) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
private Q_SLOTS:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment