summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <[email protected]>2017-05-31 00:52:31 +0200
committerPino Toscano <[email protected]>2017-05-31 00:52:31 +0200
commit60fd541ca40cd4997a43b62b7f2c267b210d9574 (patch)
tree42ddefe5bdafc42fa42a308303b08f8eecd9a7d6
parent05060d5a465372eaf754366a2c3a6fcab8ae83c9 (diff)
add Q_DECL_OVERRIDE where neededv17.08.1v17.08.0v17.07.90v17.07.80
-rw-r--r--src/filefetchjob.h2
-rw-r--r--src/filemetadataconfigwidget.h4
-rw-r--r--src/filemetadatawidget.h2
-rw-r--r--src/indexeddataretriever.h2
-rw-r--r--src/kblocklayout.h20
-rw-r--r--src/kcommentwidget_p.h4
-rw-r--r--src/tagcheckbox.h4
-rw-r--r--src/widgetfactory.cpp2
8 files changed, 20 insertions, 20 deletions
diff --git a/src/filefetchjob.h b/src/filefetchjob.h
index 4ac62d5..aed8257 100644
--- a/src/filefetchjob.h
+++ b/src/filefetchjob.h
@@ -34,7 +34,7 @@ public:
QList<QVariantMap> data() const;
- virtual void start();
+ virtual void start() Q_DECL_OVERRIDE;
private Q_SLOTS:
void doStart();
diff --git a/src/filemetadataconfigwidget.h b/src/filemetadataconfigwidget.h
index 936ded6..e1de8d0 100644
--- a/src/filemetadataconfigwidget.h
+++ b/src/filemetadataconfigwidget.h
@@ -59,10 +59,10 @@ public:
void save();
/** @see QWidget::sizeHint() */
- virtual QSize sizeHint() const;
+ virtual QSize sizeHint() const Q_DECL_OVERRIDE;
protected:
- virtual bool event(QEvent* event);
+ virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
private:
class Private;
diff --git a/src/filemetadatawidget.h b/src/filemetadatawidget.h
index 2c99fb6..b60efd0 100644
--- a/src/filemetadatawidget.h
+++ b/src/filemetadatawidget.h
@@ -59,7 +59,7 @@ public:
bool isReadOnly() const;
/** @see QWidget::sizeHint() */
- virtual QSize sizeHint() const;
+ virtual QSize sizeHint() const Q_DECL_OVERRIDE;
Q_SIGNALS:
/**
diff --git a/src/indexeddataretriever.h b/src/indexeddataretriever.h
index 2f120d4..130f55e 100644
--- a/src/indexeddataretriever.h
+++ b/src/indexeddataretriever.h
@@ -34,7 +34,7 @@ public:
IndexedDataRetriever(const QString& fileUrl, QObject* parent = 0);
virtual ~IndexedDataRetriever();
- virtual void start();
+ virtual void start() Q_DECL_OVERRIDE;
QVariantMap data() const;
diff --git a/src/kblocklayout.h b/src/kblocklayout.h
index 362757d..94d0880 100644
--- a/src/kblocklayout.h
+++ b/src/kblocklayout.h
@@ -55,16 +55,16 @@ class KBlockLayout : public QLayout
void setSpacing( int h, int v );
- void addItem( QLayoutItem* item );
- Qt::Orientations expandingDirections() const;
- bool hasHeightForWidth() const;
- int heightForWidth(int) const;
- int count() const;
- QLayoutItem* itemAt( int index ) const;
- QSize minimumSize() const;
- void setGeometry( const QRect& rect );
- QSize sizeHint() const;
- QLayoutItem* takeAt( int index );
+ void addItem( QLayoutItem* item ) Q_DECL_OVERRIDE;
+ Qt::Orientations expandingDirections() const Q_DECL_OVERRIDE;
+ bool hasHeightForWidth() const Q_DECL_OVERRIDE;
+ int heightForWidth(int) const Q_DECL_OVERRIDE;
+ int count() const Q_DECL_OVERRIDE;
+ QLayoutItem* itemAt( int index ) const Q_DECL_OVERRIDE;
+ QSize minimumSize() const Q_DECL_OVERRIDE;
+ void setGeometry( const QRect& rect ) Q_DECL_OVERRIDE;
+ QSize sizeHint() const Q_DECL_OVERRIDE;
+ QLayoutItem* takeAt( int index ) Q_DECL_OVERRIDE;
private:
int doLayout( const QRect& rect, bool testOnly ) const;
diff --git a/src/kcommentwidget_p.h b/src/kcommentwidget_p.h
index ecb7f51..01e770c 100644
--- a/src/kcommentwidget_p.h
+++ b/src/kcommentwidget_p.h
@@ -48,13 +48,13 @@ public:
void setReadOnly(bool readOnly);
bool isReadOnly() const;
- virtual QSize sizeHint() const;
+ virtual QSize sizeHint() const Q_DECL_OVERRIDE;
Q_SIGNALS:
void commentChanged(const QString& comment);
protected:
- virtual bool event(QEvent* event);
+ virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotLinkActivated(const QString& link);
diff --git a/src/tagcheckbox.h b/src/tagcheckbox.h
index 4ffd69c..5e4ccff 100644
--- a/src/tagcheckbox.h
+++ b/src/tagcheckbox.h
@@ -45,8 +45,8 @@ Q_SIGNALS:
void tagClicked(const QString& tag);
protected:
- void leaveEvent(QEvent* event );
- bool eventFilter(QObject* watched, QEvent* event);
+ void leaveEvent(QEvent* event ) Q_DECL_OVERRIDE;
+ bool eventFilter(QObject* watched, QEvent* event) Q_DECL_OVERRIDE;
private:
QRect tagRect() const;
diff --git a/src/widgetfactory.cpp b/src/widgetfactory.cpp
index 6fe2c98..799182d 100644
--- a/src/widgetfactory.cpp
+++ b/src/widgetfactory.cpp
@@ -210,7 +210,7 @@ class ValueWidget : public QLabel
{
public:
explicit ValueWidget(QWidget* parent = 0);
- virtual QSize sizeHint() const;
+ virtual QSize sizeHint() const Q_DECL_OVERRIDE;
};
ValueWidget::ValueWidget(QWidget* parent) :