Commit 0017d5bc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override

parent 9010f2da
Pipeline #42985 failed with stage
in 10 minutes and 45 seconds
......@@ -40,7 +40,7 @@ public:
@p incidenceType will influence i18n strings, that will be different for to-dos.
*/
explicit AlarmDialog(KCalendarCore::Incidence::IncidenceType incidenceType, QWidget *parent = nullptr);
~AlarmDialog();
~AlarmDialog() override;
void load(const KCalendarCore::Alarm::Ptr &alarm);
void save(const KCalendarCore::Alarm::Ptr &alarm) const;
void setAllowBeginReminders(bool allow);
......
......@@ -33,7 +33,7 @@ public:
*/
explicit AutoCheckTreeWidget(QWidget *parent = nullptr);
~AutoCheckTreeWidget();
~AutoCheckTreeWidget() override;
/**
Returns QTreeWidgetItem which matches the path, if available.
......
......@@ -27,7 +27,7 @@ class CategoryWidget : public QWidget
Q_OBJECT
public:
explicit CategoryWidget(CalendarSupport::CategoryConfig *config, QWidget *parent = nullptr);
~CategoryWidget();
~CategoryWidget() override;
void setCategories(const QStringList &categoryList = QStringList());
void setCategoryList(const QStringList &categories);
......
......@@ -27,7 +27,7 @@ class CategoryEditDialog : public QDialog
public:
explicit CategoryEditDialog(CalendarSupport::CategoryConfig *categoryConfig, QWidget *parent = nullptr);
~CategoryEditDialog();
~CategoryEditDialog() override;
public Q_SLOTS:
void reload();
......
......@@ -24,7 +24,7 @@ class CategorySelectWidget : public QWidget
Q_OBJECT
public:
explicit CategorySelectWidget(CalendarSupport::CategoryConfig *config, QWidget *parent = nullptr);
~CategorySelectWidget();
~CategorySelectWidget() override;
void setCategories(const QStringList &categoryList = QStringList());
void setCategoryList(const QStringList &categories);
......
......@@ -39,12 +39,12 @@ public:
* Receives an option IncidenceChanger, so you can share the undo/redo stack with your
* application.
*/
EditorItemManager(ItemEditorUi *ui, Akonadi::IncidenceChanger *changer = nullptr);
explicit EditorItemManager(ItemEditorUi *ui, Akonadi::IncidenceChanger *changer = nullptr);
/**
* Destructs the ItemEditor. Unsaved changes will get lost at this point.
*/
~EditorItemManager();
~EditorItemManager() override;
enum ItemState {
AfterSave, /**< Returns the last saved item */
......
......@@ -33,7 +33,7 @@ class FreeBusyUrlWidget : public QWidget
Q_OBJECT
public:
explicit FreeBusyUrlWidget(const AttendeeData::Ptr &, QWidget *parent = nullptr);
~FreeBusyUrlWidget();
~FreeBusyUrlWidget() override;
void loadConfig();
void saveConfig();
......
......@@ -36,7 +36,7 @@ class IncidenceAttendee : public IncidenceEditor
public:
using IncidenceEditorNG::IncidenceEditor::save; // So we don't trigger -Woverloaded-virtual
using IncidenceEditorNG::IncidenceEditor::load; // So we don't trigger -Woverloaded-virtual
IncidenceAttendee(QWidget *parent, IncidenceDateTime *dateTime, Ui::EventOrTodoDesktop *ui);
explicit IncidenceAttendee(QWidget *parent, IncidenceDateTime *dateTime, Ui::EventOrTodoDesktop *ui);
~IncidenceAttendee() override;
void load(const KCalendarCore::Incidence::Ptr &incidence) override;
......
......@@ -28,7 +28,7 @@ public:
using IncidenceEditorNG::IncidenceEditor::load; // So we don't trigger -Woverloaded-virtual
explicit IncidenceResource(IncidenceAttendee *mIeAttendee, IncidenceDateTime *dateTime, Ui::EventOrTodoDesktop *ui);
~IncidenceResource();
~IncidenceResource() override;
void load(const KCalendarCore::Incidence::Ptr &incidence) override;
void save(const KCalendarCore::Incidence::Ptr &incidence) override;
......
......@@ -34,7 +34,7 @@ public:
/**
* Destroys the time zone combobox.
*/
~KTimeZoneComboBox();
~KTimeZoneComboBox() override;
/**
* Selects the item in the combobox corresponding to the given @p zone.
......
......@@ -32,7 +32,7 @@ public:
typedef QSharedPointer<ResourceItem> Ptr;
ResourceItem(const KLDAP::LdapDN &dn, const QStringList &attrs, const KLDAP::LdapClient &ldapClient, const ResourceItem::Ptr &parent = ResourceItem::Ptr());
~ResourceItem();
~ResourceItem() override;
Q_REQUIRED_RESULT ResourceItem::Ptr child(int number);
Q_REQUIRED_RESULT int childCount() const;
......
......@@ -25,8 +25,8 @@ class SchedulingDialog : public QDialog, private Ui_Dialog
{
Q_OBJECT
public:
SchedulingDialog(const QDate &startDate, const QTime &startTime, int duration, ConflictResolver *resolver, QWidget *parent);
~SchedulingDialog();
explicit SchedulingDialog(const QDate &startDate, const QTime &startTime, int duration, ConflictResolver *resolver, QWidget *parent);
~SchedulingDialog() override;
Q_REQUIRED_RESULT QDate selectedStartDate() const;
Q_REQUIRED_RESULT QTime selectedStartTime() const;
......
......@@ -18,7 +18,7 @@ class TemplateManagementDialog : public QDialog
{
Q_OBJECT
public:
TemplateManagementDialog(QWidget *parent, const QStringList &templates, const QString &incidenceType);
explicit TemplateManagementDialog(QWidget *parent, const QStringList &templates, const QString &incidenceType);
Q_SIGNALS:
/* Emitted whenever the user hits apply, indicating that the currently
......
......@@ -32,7 +32,7 @@ class VisualFreeBusyWidget : public QWidget
Q_OBJECT
public:
explicit VisualFreeBusyWidget(CalendarSupport::FreeBusyItemModel *model, int spacing = 8, QWidget *parent = nullptr);
~VisualFreeBusyWidget();
~VisualFreeBusyWidget() override;
public Q_SLOTS:
void slotUpdateIncidenceStartEnd(const QDateTime &, const QDateTime &);
......
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