Commit 1f271ec9 authored by Laurent Montel's avatar Laurent Montel 😁

Use override keyword

parent 8f761f42
......@@ -35,7 +35,7 @@ class AlarmDockWindow : public KStatusNotifierItem
Q_OBJECT
public:
AlarmDockWindow();
virtual ~AlarmDockWindow();
~AlarmDockWindow() override;
void enableAutostart(bool enabled);
......
......@@ -66,7 +66,7 @@ class KORGANIZERPRIVATE_EXPORT ActionManager : public QObject
public:
ActionManager(KXMLGUIClient *client, CalendarView *widget, QObject *parent,
KOrg::MainWindow *mainWindow, bool isPart, QMenuBar *menuBar = nullptr);
virtual ~ActionManager();
~ActionManager() override;
/** Peform initialization that requires this* to be full constructed */
void init();
......
......@@ -109,7 +109,7 @@ public:
@param parent parent window
*/
explicit CalendarView(QWidget *parent = nullptr);
virtual ~CalendarView();
~CalendarView() override;
class CalendarViewVisitor : public KCalCore::Visitor
{
......
......@@ -52,7 +52,7 @@ class FilterEditDialog : public QDialog
Q_OBJECT
public:
explicit FilterEditDialog(QList<KCalCore::CalFilter *> *, QWidget *parent = nullptr);
virtual ~FilterEditDialog();
~FilterEditDialog() override;
Q_SIGNALS:
void filterChanged();
......
......@@ -47,7 +47,7 @@ class KORGANIZERPRIVATE_EXPORT KOEventViewerDialog : public QDialog
Q_OBJECT
public:
explicit KOEventViewerDialog(Akonadi::ETMCalendar *calendar, QWidget *parent = nullptr);
virtual ~KOEventViewerDialog();
~KOEventViewerDialog() override;
void setIncidence(const Akonadi::Item &incidence, const QDate &date);
......
......@@ -49,7 +49,7 @@ class SearchDialog : public QDialog
Q_OBJECT
public:
explicit SearchDialog(CalendarView *calendarview);
virtual ~SearchDialog();
~SearchDialog() override;
void updateView();
......
......@@ -64,7 +64,7 @@ public:
/**
Destructor. Views will do view-specific cleanups here.
*/
virtual ~BaseView();
~BaseView() override;
virtual void setCalendar(const Akonadi::ETMCalendar::Ptr &cal);
/**
......
......@@ -58,7 +58,7 @@ class KODialogManager : public QObject
Q_OBJECT
public:
explicit KODialogManager(CalendarView *);
virtual ~KODialogManager();
~KODialogManager() override;
IncidenceEditorNG::IncidenceDialog *createDialog(const Akonadi::Item &item);
......
......@@ -71,7 +71,7 @@ public:
/**
* Destructor. Views will do view-specific cleanups here.
*/
virtual ~KOEventView();
~KOEventView() override;
/**
* provides a hint back to the caller on the maximum number of dates
......
......@@ -40,7 +40,7 @@ class KCMTodoSummary : public KCModule, public Ui::TodoSummaryConfig_Base
public:
explicit KCMTodoSummary(QWidget *parent = nullptr);
virtual ~KCMTodoSummary();
~KCMTodoSummary() override;
void load() override;
void save() override;
......
......@@ -53,7 +53,7 @@ class KOrganizer : public KPartsMainWindow, public KOrgMainWindow
Q_OBJECT
public:
KOrganizer();
virtual ~KOrganizer();
~KOrganizer() override;
void init(bool hasDocument) override;
......
......@@ -46,7 +46,7 @@ class KOrganizerPart : public KParts::ReadOnlyPart, public KOrg::MainWindow
Q_OBJECT
public:
KOrganizerPart(QWidget *parentWidget, QObject *parent, const QVariantList &);
virtual ~KOrganizerPart();
~KOrganizerPart() override;
KOrg::CalendarViewBase *view() const override;
......
......@@ -72,7 +72,7 @@ public:
};
explicit KOViewManager(CalendarView *);
virtual ~KOViewManager();
~KOViewManager() override;
/** changes the view to be the currently selected view */
void showView(KOrg::BaseView *);
......
......@@ -50,7 +50,7 @@ public:
instance of this class. The ActionManager class takes care of this.
*/
KOWindowList();
virtual ~KOWindowList();
~KOWindowList() override;
/**
Is there only one instance left?
......
......@@ -34,7 +34,7 @@ class KORGANIZER_CORE_EXPORT KOPrefs : public KOPrefsBase
{
Q_OBJECT
public:
virtual ~KOPrefs();
~KOPrefs() override;
/** Get instance of KOPrefs. It is made sure that there is only one
instance. */
......
......@@ -39,7 +39,7 @@ class KOAgendaView : public KOEventView
Q_OBJECT
public:
explicit KOAgendaView(QWidget *parent = nullptr, bool isSideBySide = false);
virtual ~KOAgendaView();
~KOAgendaView() override;
/** Returns maximum number of days supported by the koagendaview */
int maxDatesHint() const override;
......
......@@ -31,7 +31,7 @@ class StyledCalendarDelegate : public QStyledItemDelegate
public:
explicit StyledCalendarDelegate(QObject *parent);
virtual ~StyledCalendarDelegate();
~StyledCalendarDelegate() override;
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
......
......@@ -74,7 +74,7 @@ class PersonNode : public ReparentingModel::Node
{
public:
PersonNode(ReparentingModel &personModel, const KPIM::Person &person);
virtual ~PersonNode();
~PersonNode() override;
bool operator==(const Node &) const override;
void setChecked(bool);
......@@ -98,7 +98,7 @@ class CollectionNode : public ReparentingModel::Node
{
public:
CollectionNode(ReparentingModel &personModel, const Akonadi::Collection &col);
virtual ~CollectionNode();
~CollectionNode() override;
bool operator==(const Node &) const override;
Emitter emitter;
......
......@@ -41,7 +41,7 @@ class Quickview : public QDialog
Q_OBJECT
public:
Quickview(const KPIM::Person &person, const Akonadi::Collection &col);
virtual ~Quickview();
~Quickview() override;
private Q_SLOTS:
void onTodayClicked();
......
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