Commit f8335866 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent 7ed3c7d3
......@@ -89,7 +89,7 @@ public:
uint children() const {
return m_children;
}
virtual bool isFolder() const {
bool isFolder() const Q_DECL_OVERRIDE {
return true;
}
......
......@@ -49,7 +49,7 @@ private:
ScanManager *m_parent;
private:
virtual void run();
void run() Q_DECL_OVERRIDE;
Folder *scan(const QByteArray&, const QByteArray&);
private:
......
......@@ -47,7 +47,7 @@ public slots:
void halt();
protected:
void paintEvent(QPaintEvent *event);
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
private:
QTimer m_timer;
......
......@@ -87,15 +87,15 @@ signals:
void giveMeTreeFor(const QUrl&);
protected:
virtual void changeEvent(QEvent*);
virtual void dragEnterEvent(QDragEnterEvent*);
virtual void dropEvent(QDropEvent*);
virtual void mouseMoveEvent(QMouseEvent*);
virtual void mousePressEvent(QMouseEvent*);
virtual void paintEvent(QPaintEvent*);
virtual void resizeEvent(QResizeEvent*);
virtual void enterEvent(QEvent*);
virtual void leaveEvent(QEvent*);
void changeEvent(QEvent*) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent*) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent*) Q_DECL_OVERRIDE;
void enterEvent(QEvent*) Q_DECL_OVERRIDE;
void leaveEvent(QEvent*) Q_DECL_OVERRIDE;
protected:
const Segment *segmentAt(QPoint&) const; //FIXME const reference for a library others can use
......
......@@ -38,8 +38,8 @@ public:
explicit SettingsDialog(QWidget* = 0);
protected:
virtual void closeEvent(QCloseEvent *);
virtual void reject();
void closeEvent(QCloseEvent *) Q_DECL_OVERRIDE;
void reject() Q_DECL_OVERRIDE;
public slots:
void addFolder();
......
......@@ -77,7 +77,7 @@ public:
unsetCursor();
}
virtual void mousePressEvent(QMouseEvent *e)
void mousePressEvent(QMouseEvent *e) Q_DECL_OVERRIDE
{
const RadialMap::Segment *segment = focusSegment();
......
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