aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-01 22:55:16 +0200
committerMontel Laurent <[email protected]>2017-06-01 22:55:16 +0200
commitf83358667ac611f8c8a2cd41097442dce1d5c711 (patch)
tree8ce27ed63c581654b8fd70ebd34cf155bd49340d
parent7ed3c7d3172747a194b8fabcbac9b430d6021a6c (diff)
Use Q_DECLARE_OVERRIDEv17.07.80
-rw-r--r--src/fileTree.h2
-rw-r--r--src/localLister.h2
-rw-r--r--src/progressBox.h2
-rw-r--r--src/radialMap/widget.h18
-rw-r--r--src/settingsDialog.h4
-rw-r--r--src/summaryWidget.cpp2
6 files changed, 15 insertions, 15 deletions
diff --git a/src/fileTree.h b/src/fileTree.h
index da70a3a..04f6beb 100644
--- a/src/fileTree.h
+++ b/src/fileTree.h
@@ -89,7 +89,7 @@ public:
uint children() const {
return m_children;
}
- virtual bool isFolder() const {
+ bool isFolder() const Q_DECL_OVERRIDE {
return true;
}
diff --git a/src/localLister.h b/src/localLister.h
index f8b8215..a93f26e 100644
--- a/src/localLister.h
+++ b/src/localLister.h
@@ -49,7 +49,7 @@ private:
ScanManager *m_parent;
private:
- virtual void run();
+ void run() Q_DECL_OVERRIDE;
Folder *scan(const QByteArray&, const QByteArray&);
private:
diff --git a/src/progressBox.h b/src/progressBox.h
index 0a7c47e..027cb5d 100644
--- a/src/progressBox.h
+++ b/src/progressBox.h
@@ -47,7 +47,7 @@ public slots:
void halt();
protected:
- void paintEvent(QPaintEvent *event);
+ void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
private:
QTimer m_timer;
diff --git a/src/radialMap/widget.h b/src/radialMap/widget.h
index d83001e..4ef535b 100644
--- a/src/radialMap/widget.h
+++ b/src/radialMap/widget.h
@@ -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
diff --git a/src/settingsDialog.h b/src/settingsDialog.h
index d7c93eb..e295ca1 100644
--- a/src/settingsDialog.h
+++ b/src/settingsDialog.h
@@ -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();
diff --git a/src/summaryWidget.cpp b/src/summaryWidget.cpp
index dffed32..88d1043 100644
--- a/src/summaryWidget.cpp
+++ b/src/summaryWidget.cpp
@@ -77,7 +77,7 @@ public:
unsetCursor();
}
- virtual void mousePressEvent(QMouseEvent *e)
+ void mousePressEvent(QMouseEvent *e) Q_DECL_OVERRIDE
{
const RadialMap::Segment *segment = focusSegment();