┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorLukáš Tinkl <[email protected]>2014-11-03 23:52:18 +0100
committerLukáš Tinkl <[email protected]>2014-11-03 23:52:18 +0100
commit037d5db85bb0bd798d40c557d424c5c9b87457a8 (patch)
treee032bfeb3f7e6bf3a1e118ff195df9009949a7d6 /src/panels
parentb96def1856bfd043ba7dae56368ceed6940bd6c4 (diff)
Q_DECL_OVERRIDE
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/folders/foldersitemlistwidget.h2
-rw-r--r--src/panels/folders/folderspanel.h6
-rw-r--r--src/panels/information/informationpanel.h8
-rw-r--r--src/panels/information/informationpanelcontent.h2
-rw-r--r--src/panels/information/phononwidget.h4
-rw-r--r--src/panels/information/pixmapviewer.h4
-rw-r--r--src/panels/panel.h3
-rw-r--r--src/panels/places/placesitemeditdialog.h2
-rw-r--r--src/panels/places/placesitemlistgroupheader.h2
-rw-r--r--src/panels/places/placesitemlistwidget.h4
-rw-r--r--src/panels/places/placesitemmodel.h14
-rw-r--r--src/panels/places/placespanel.h4
-rw-r--r--src/panels/terminal/terminalpanel.h6
13 files changed, 28 insertions, 33 deletions
diff --git a/src/panels/folders/foldersitemlistwidget.h b/src/panels/folders/foldersitemlistwidget.h
index 08d41b829..2278762e3 100644
--- a/src/panels/folders/foldersitemlistwidget.h
+++ b/src/panels/folders/foldersitemlistwidget.h
@@ -34,7 +34,7 @@ public:
virtual ~FoldersItemListWidget();
protected:
- virtual QPalette::ColorRole normalTextColorRole() const;
+ virtual QPalette::ColorRole normalTextColorRole() const Q_DECL_OVERRIDE;
};
#endif
diff --git a/src/panels/folders/folderspanel.h b/src/panels/folders/folderspanel.h
index 2cbd28f28..7c591cc20 100644
--- a/src/panels/folders/folderspanel.h
+++ b/src/panels/folders/folderspanel.h
@@ -57,13 +57,13 @@ signals:
protected:
/** @see Panel::urlChanged() */
- virtual bool urlChanged();
+ virtual bool urlChanged() Q_DECL_OVERRIDE;
/** @see QWidget::showEvent() */
- virtual void showEvent(QShowEvent* event);
+ virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
/** @see QWidget::keyPressEvent() */
- virtual void keyPressEvent(QKeyEvent* event);
+ virtual void keyPressEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
private slots:
void slotItemActivated(int index);
diff --git a/src/panels/information/informationpanel.h b/src/panels/information/informationpanel.h
index 9a1e6351d..7a0e4165e 100644
--- a/src/panels/information/informationpanel.h
+++ b/src/panels/information/informationpanel.h
@@ -59,16 +59,16 @@ public slots:
protected:
/** @see Panel::urlChanged() */
- virtual bool urlChanged();
+ virtual bool urlChanged() Q_DECL_OVERRIDE;
/** @see QWidget::showEvent() */
- virtual void showEvent(QShowEvent* event);
+ virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
/** @see QWidget::resizeEvent() */
- virtual void resizeEvent(QResizeEvent* event);
+ virtual void resizeEvent(QResizeEvent* event) Q_DECL_OVERRIDE;
/** @see QWidget::contextMenuEvent() */
- virtual void contextMenuEvent(QContextMenuEvent* event);
+ virtual void contextMenuEvent(QContextMenuEvent* event) Q_DECL_OVERRIDE;
private slots:
/**
diff --git a/src/panels/information/informationpanelcontent.h b/src/panels/information/informationpanelcontent.h
index f4103853e..533e9de3b 100644
--- a/src/panels/information/informationpanelcontent.h
+++ b/src/panels/information/informationpanelcontent.h
@@ -85,7 +85,7 @@ signals:
protected:
/** @see QObject::eventFilter() */
- virtual bool eventFilter(QObject* obj, QEvent* event);
+ virtual bool eventFilter(QObject* obj, QEvent* event) Q_DECL_OVERRIDE;
private slots:
/**
diff --git a/src/panels/information/phononwidget.h b/src/panels/information/phononwidget.h
index 09b4ee26f..837a66888 100644
--- a/src/panels/information/phononwidget.h
+++ b/src/panels/information/phononwidget.h
@@ -63,8 +63,8 @@ class PhononWidget : public QWidget
void hasVideoChanged(bool hasVideo);
protected:
- virtual void showEvent(QShowEvent *event);
- virtual void hideEvent(QHideEvent *event);
+ virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
+ virtual void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE;
private slots:
void stateChanged(Phonon::State);
diff --git a/src/panels/information/pixmapviewer.h b/src/panels/information/pixmapviewer.h
index 8197df979..ddc183351 100644
--- a/src/panels/information/pixmapviewer.h
+++ b/src/panels/information/pixmapviewer.h
@@ -71,10 +71,10 @@ public:
* of the parent widget. Per default no size hint is given.
*/
void setSizeHint(const QSize& size);
- virtual QSize sizeHint() const;
+ virtual QSize sizeHint() const Q_DECL_OVERRIDE;
protected:
- virtual void paintEvent(QPaintEvent* event);
+ virtual void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE;
private Q_SLOTS:
void checkPendingPixmaps();
diff --git a/src/panels/panel.h b/src/panels/panel.h
index f43ebe9d9..d3460bf13 100644
--- a/src/panels/panel.h
+++ b/src/panels/panel.h
@@ -49,8 +49,7 @@ public:
void setCustomContextMenuActions(const QList<QAction*>& actions);
QList<QAction*> customContextMenuActions() const;
- /** @see QWidget::sizeHint() */
- virtual QSize sizeHint() const;
+ virtual QSize sizeHint() const Q_DECL_OVERRIDE;
public slots:
/**
diff --git a/src/panels/places/placesitemeditdialog.h b/src/panels/places/placesitemeditdialog.h
index 53e62379d..f2bba546b 100644
--- a/src/panels/places/placesitemeditdialog.h
+++ b/src/panels/places/placesitemeditdialog.h
@@ -54,7 +54,7 @@ public:
bool allowGlobal() const;
protected:
- virtual bool event(QEvent* event);
+ virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
private slots:
void slotUrlChanged(const QString& text);
diff --git a/src/panels/places/placesitemlistgroupheader.h b/src/panels/places/placesitemlistgroupheader.h
index 1c2d5cc25..7daaba602 100644
--- a/src/panels/places/placesitemlistgroupheader.h
+++ b/src/panels/places/placesitemlistgroupheader.h
@@ -31,7 +31,7 @@ public:
virtual ~PlacesItemListGroupHeader();
protected:
- virtual void paintSeparator(QPainter* painter, const QColor& color);
+ virtual void paintSeparator(QPainter* painter, const QColor& color) Q_DECL_OVERRIDE;
virtual QPalette::ColorRole normalTextColorRole() const;
};
diff --git a/src/panels/places/placesitemlistwidget.h b/src/panels/places/placesitemlistwidget.h
index a2a88c1f0..e9e6a0767 100644
--- a/src/panels/places/placesitemlistwidget.h
+++ b/src/panels/places/placesitemlistwidget.h
@@ -35,8 +35,8 @@ public:
virtual ~PlacesItemListWidget();
protected:
- virtual bool isHidden() const;
- virtual QPalette::ColorRole normalTextColorRole() const;
+ virtual bool isHidden() const Q_DECL_OVERRIDE;
+ virtual QPalette::ColorRole normalTextColorRole() const Q_DECL_OVERRIDE;
};
#endif
diff --git a/src/panels/places/placesitemmodel.h b/src/panels/places/placesitemmodel.h
index 229841dc5..38fcfe6af 100644
--- a/src/panels/places/placesitemmodel.h
+++ b/src/panels/places/placesitemmodel.h
@@ -107,11 +107,9 @@ public:
bool storageSetupNeeded(int index) const;
void requestStorageSetup(int index);
- /** @reimp */
- virtual QMimeData* createMimeData(const KItemSet& indexes) const;
+ virtual QMimeData* createMimeData(const KItemSet& indexes) const Q_DECL_OVERRIDE;
- /** @reimp */
- virtual bool supportsDropping(int index) const;
+ virtual bool supportsDropping(int index) const Q_DECL_OVERRIDE;
void dropMimeDataBefore(int index, const QMimeData* mimeData);
@@ -123,15 +121,15 @@ public:
*/
static QUrl convertedUrl(const QUrl& url);
- virtual void clear();
+ virtual void clear() Q_DECL_OVERRIDE;
signals:
void errorMessage(const QString& message);
void storageSetupDone(int index, bool success);
protected:
- virtual void onItemInserted(int index);
- virtual void onItemRemoved(int index, KStandardItem* removedItem);
- virtual void onItemChanged(int index, const QSet<QByteArray>& changedRoles);
+ virtual void onItemInserted(int index) Q_DECL_OVERRIDE;
+ virtual void onItemRemoved(int index, KStandardItem* removedItem) Q_DECL_OVERRIDE;
+ virtual void onItemChanged(int index, const QSet<QByteArray>& changedRoles) Q_DECL_OVERRIDE;
private slots:
void slotDeviceAdded(const QString& udi);
diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h
index 3604e9986..81aeedb28 100644
--- a/src/panels/places/placespanel.h
+++ b/src/panels/places/placespanel.h
@@ -48,8 +48,8 @@ signals:
void errorMessage(const QString& error);
protected:
- virtual bool urlChanged();
- virtual void showEvent(QShowEvent* event);
+ virtual bool urlChanged() Q_DECL_OVERRIDE;
+ virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
public slots:
virtual void readSettings();
diff --git a/src/panels/terminal/terminalpanel.h b/src/panels/terminal/terminalpanel.h
index b3ccefb31..75e198e1a 100644
--- a/src/panels/terminal/terminalpanel.h
+++ b/src/panels/terminal/terminalpanel.h
@@ -61,11 +61,9 @@ signals:
void changeUrl(const QUrl& url);
protected:
- /** @see Panel::urlChanged() */
- virtual bool urlChanged();
+ virtual bool urlChanged() Q_DECL_OVERRIDE;
- /** @see QWidget::showEvent() */
- virtual void showEvent(QShowEvent* event);
+ virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
private slots:
void slotMostLocalUrlResult(KJob* job);