Use Q_DECL_OVERRIDE

wilder-work
Montel Laurent 11 years ago
parent 2d64b2449d
commit 75b6d2cd52
  1. 2
      searchdialog/kmsearchfilterproxymodel.h
  2. 6
      searchdialog/kmsearchmessagemodel.h
  3. 8
      searchdialog/searchdescriptionattribute.h
  4. 4
      searchdialog/searchwindow.h
  5. 6
      widgets/collectionpane.h
  6. 2
      widgets/statusbarlabeltoggledstate.h
  7. 4
      widgets/vacationscriptindicatorwidget.h

@ -41,7 +41,7 @@ public:
explicit KMSearchFilterProxyModel(QObject *parent);
~KMSearchFilterProxyModel();
protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
};
}

@ -48,10 +48,10 @@ public:
explicit KMSearchMessageModel(QObject *parent = 0);
~KMSearchMessageModel();
int columnCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
};

@ -42,10 +42,10 @@ public:
void setListCollection(const QList<Akonadi::Collection::Id> &col);
QList<Akonadi::Collection::Id> listCollection() const;
QByteArray type() const;
Attribute *clone() const;
QByteArray serialized() const;
void deserialize(const QByteArray &data);
QByteArray type() const Q_DECL_OVERRIDE;
Attribute *clone() const Q_DECL_OVERRIDE;
QByteArray serialized() const Q_DECL_OVERRIDE;
void deserialize(const QByteArray &data) Q_DECL_OVERRIDE;
private:
QList<Akonadi::Collection::Id> mListCollection;

@ -111,10 +111,10 @@ public:
protected:
/** Reimplemented to react to Escape. */
void keyPressEvent(QKeyEvent *);
void keyPressEvent(QKeyEvent *) Q_DECL_OVERRIDE;
/** Reimplemented to stop searching when the window is closed */
void closeEvent(QCloseEvent *);
void closeEvent(QCloseEvent *) Q_DECL_OVERRIDE;
void createSearchModel();

@ -29,8 +29,8 @@ public:
explicit CollectionPane(bool restoreSession, QAbstractItemModel *model, QItemSelectionModel *selectionModel, QWidget *parent = 0);
~CollectionPane();
MessageList::StorageModel *createStorageModel(QAbstractItemModel *model, QItemSelectionModel *selectionModel, QObject *parent);
void writeConfig(bool restoreSession);
MessageList::StorageModel *createStorageModel(QAbstractItemModel *model, QItemSelectionModel *selectionModel, QObject *parent) Q_DECL_OVERRIDE;
void writeConfig(bool restoreSession) Q_DECL_OVERRIDE;
};
class CollectionStorageModel : public MessageList::StorageModel
@ -42,7 +42,7 @@ public:
*/
explicit CollectionStorageModel(QAbstractItemModel *model, QItemSelectionModel *selectionModel, QObject *parent = 0);
~CollectionStorageModel();
bool isOutBoundFolder(const Akonadi::Collection &c) const;
bool isOutBoundFolder(const Akonadi::Collection &c) const Q_DECL_OVERRIDE;
};
#endif /* COLLECTIONPANE_H */

@ -36,7 +36,7 @@ Q_SIGNALS:
void toggleModeChanged(bool state);
protected:
void mousePressEvent(QMouseEvent *ev);
void mousePressEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;
private:
void updateLabel();

@ -35,7 +35,7 @@ Q_SIGNALS:
void clicked(const QString &serverName);
protected:
void mouseReleaseEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
private:
QString mServerName;
@ -52,7 +52,7 @@ Q_SIGNALS:
void clicked();
protected:
void mouseReleaseEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
};
class VacationScriptIndicatorWidget : public QWidget

Loading…
Cancel
Save