Commit 9fc29735 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override

parent 0b0e8a5b
Pipeline #43226 canceled with stage
......@@ -15,7 +15,7 @@ class GearyAddressBook : public LibImportWizard::AbstractAddressBook
Q_OBJECT
public:
explicit GearyAddressBook(const QString &filename);
~GearyAddressBook();
~GearyAddressBook() override;
void importAddressBook();
};
......
......@@ -15,7 +15,7 @@ class GearySettings : public AbstractSettings
{
public:
explicit GearySettings(const QString &filename);
~GearySettings();
~GearySettings() override;
void importSettings();
private:
void readImapAccount();
......
......@@ -13,7 +13,7 @@ class NylasMailSettings : public AbstractSettings
{
public:
explicit NylasMailSettings(const QString &filename);
~NylasMailSettings();
~NylasMailSettings() override;
void importSettings();
private:
void readImapAccount();
......
......@@ -13,7 +13,7 @@ class OperaAddressBook : public LibImportWizard::AbstractAddressBook
{
public:
explicit OperaAddressBook(const QString &filename);
~OperaAddressBook();
~OperaAddressBook() override;
void importAddressBook();
private:
......
......@@ -15,7 +15,7 @@ class OperaSettings : public AbstractSettings
{
public:
explicit OperaSettings(const QString &filename);
~OperaSettings();
~OperaSettings() override;
void importSettings();
private:
......
......@@ -15,7 +15,7 @@ class PMailSettings : public AbstractSettings
{
public:
explicit PMailSettings(const QString &filename);
~PMailSettings();
~PMailSettings() override;
void importSettings();
private:
......
......@@ -29,7 +29,7 @@ class CSVImportDialog : public QDialog
public:
explicit CSVImportDialog(QWidget *parent = nullptr);
~CSVImportDialog();
~CSVImportDialog() override;
KContacts::AddresseeList contacts() const;
......
......@@ -23,7 +23,7 @@ public:
/**
* Destroys the csv model.
*/
~QCsvModel();
~QCsvModel() override;
/**
* Loads the data from the @p device into the model.
......
......@@ -15,7 +15,7 @@ class VCardExportSelectionWidget : public QWidget
Q_OBJECT
public:
explicit VCardExportSelectionWidget(QWidget *parent = nullptr);
~VCardExportSelectionWidget();
~VCardExportSelectionWidget() override;
enum ExportField {
None = 0,
Private = 1,
......
......@@ -18,7 +18,7 @@ class VCardViewerDialog : public QDialog
Q_OBJECT
public:
VCardViewerDialog(const KContacts::Addressee::List &list, QWidget *parent = nullptr);
~VCardViewerDialog();
~VCardViewerDialog() override;
KContacts::Addressee::List contacts() const;
......
......@@ -19,7 +19,7 @@ class GravatarUpdateJob : public QObject
Q_OBJECT
public:
explicit GravatarUpdateJob(QObject *parent = nullptr);
~GravatarUpdateJob();
~GravatarUpdateJob() override;
void start();
bool canStart() const;
......
......@@ -15,7 +15,7 @@ class GravatarUpdateDialog : public QDialog
Q_OBJECT
public:
explicit GravatarUpdateDialog(QWidget *parent = nullptr);
~GravatarUpdateDialog();
~GravatarUpdateDialog() override;
void setEmail(const QString &email);
......
......@@ -21,7 +21,7 @@ class GravatarUpdateWidget : public QWidget
Q_OBJECT
public:
explicit GravatarUpdateWidget(QWidget *parent = nullptr);
~GravatarUpdateWidget();
~GravatarUpdateWidget() override;
void setEmail(const QString &email);
QPixmap pixmap() const;
......
......@@ -17,7 +17,7 @@ class MergeContactsJob : public QObject
Q_OBJECT
public:
explicit MergeContactsJob(QObject *parent = nullptr);
~MergeContactsJob();
~MergeContactsJob() override;
void start();
......
......@@ -16,7 +16,7 @@ class SearchPotentialDuplicateContactJob : public QObject
Q_OBJECT
public:
explicit SearchPotentialDuplicateContactJob(const Akonadi::Item::List &list, QObject *parent = nullptr);
~SearchPotentialDuplicateContactJob();
~SearchPotentialDuplicateContactJob() override;
void start();
......
......@@ -24,7 +24,7 @@ class KADDRESSBOOKMERGELIB_EXPORT MergeContactsDialog : public QDialog
Q_OBJECT
public:
explicit MergeContactsDialog(QWidget *parent = nullptr);
~MergeContactsDialog();
~MergeContactsDialog() override;
void setContacts(const Akonadi::Item::List &list);
private:
......
......@@ -25,7 +25,7 @@ class KADDRESSBOOKMERGELIB_EXPORT MergeContactWidget : public QWidget
Q_OBJECT
public:
explicit MergeContactWidget(QWidget *parent = nullptr);
~MergeContactWidget();
~MergeContactWidget() override;
void setContacts(const Akonadi::Item::List &items);
......
......@@ -27,7 +27,7 @@ class MergeContactWidgetList : public QListWidget
Q_OBJECT
public:
explicit MergeContactWidgetList(QWidget *parent = nullptr);
~MergeContactWidgetList();
~MergeContactWidgetList() override;
void fillListContact(const Akonadi::Item::List &items);
Akonadi::Item::List listSelectedContacts() const;
......
......@@ -18,7 +18,7 @@ class KADDRESSBOOKMERGELIB_EXPORT MergeContactSelectInformationTabWidget : publi
Q_OBJECT
public:
explicit MergeContactSelectInformationTabWidget(QWidget *parent = nullptr);
~MergeContactSelectInformationTabWidget();
~MergeContactSelectInformationTabWidget() override;
void updateTabWidget();
......
......@@ -18,7 +18,7 @@ class KADDRESSBOOKMERGELIB_EXPORT ResultDuplicateTreeWidgetItem : public QTreeWi
{
public:
explicit ResultDuplicateTreeWidgetItem(QTreeWidget *parent = nullptr);
~ResultDuplicateTreeWidgetItem();
~ResultDuplicateTreeWidgetItem() override;
Q_REQUIRED_RESULT Akonadi::Item item() const;
void setItem(const Akonadi::Item &item);
......
......@@ -24,7 +24,7 @@ class KADDRESSBOOKMERGELIB_EXPORT SearchAndMergeContactDuplicateContactDialog :
Q_OBJECT
public:
explicit SearchAndMergeContactDuplicateContactDialog(QWidget *parent = nullptr);
~SearchAndMergeContactDuplicateContactDialog();
~SearchAndMergeContactDuplicateContactDialog() override;
void searchPotentialDuplicateContacts(const Akonadi::Item::List &list);
......
......@@ -32,7 +32,7 @@ class KADDRESSBOOKMERGELIB_EXPORT SearchDuplicateResultWidget : public QWidget
Q_OBJECT
public:
explicit SearchDuplicateResultWidget(QWidget *parent = nullptr);
~SearchDuplicateResultWidget();
~SearchDuplicateResultWidget() override;
void setContacts(const QVector<Akonadi::Item::List> &lstItem);
Q_SIGNALS:
......
......@@ -20,7 +20,7 @@ public:
NoContactSelected
};
explicit MergeContactErrorLabel(MergeContactErrorLabel::ErrorType type, QWidget *parent = nullptr);
~MergeContactErrorLabel();
~MergeContactErrorLabel() override;
};
}
......
......@@ -22,7 +22,7 @@ class MergeContactInfoWidget : public QWidget
Q_OBJECT
public:
explicit MergeContactInfoWidget(QWidget *parent = nullptr);
~MergeContactInfoWidget();
~MergeContactInfoWidget() override;
public Q_SLOTS:
void setContact(const Akonadi::Item &item);
......
......@@ -15,7 +15,7 @@ class KADDRESSBOOKMERGELIB_EXPORT MergeContactLoseInformationWarning : public KM
Q_OBJECT
public:
explicit MergeContactLoseInformationWarning(QWidget *parent = nullptr);
~MergeContactLoseInformationWarning();
~MergeContactLoseInformationWarning() override;
Q_SIGNALS:
void continueMerging();
......
......@@ -19,7 +19,7 @@ class KADDRESSBOOKMERGELIB_EXPORT MergeContactSelectInformationScrollArea : publ
Q_OBJECT
public:
explicit MergeContactSelectInformationScrollArea(QWidget *parent = nullptr);
~MergeContactSelectInformationScrollArea();
~MergeContactSelectInformationScrollArea() override;
void setContacts(MergeContacts::ConflictInformations conflictTypes, const Akonadi::Item::List &listItem, const Akonadi::Collection &col);
private:
void slotMergeContacts();
......
......@@ -18,7 +18,7 @@ class KADDRESSBOOKMERGELIB_EXPORT MergeContactSelectInformationWidget : public Q
Q_OBJECT
public:
explicit MergeContactSelectInformationWidget(QWidget *parent = nullptr);
~MergeContactSelectInformationWidget();
~MergeContactSelectInformationWidget() override;
void setContacts(KABMergeContacts::MergeContacts::ConflictInformations conflictTypes, const Akonadi::Item::List &listItem);
void createContact(KContacts::Addressee &addr);
......
......@@ -23,7 +23,7 @@ class KADDRESSBOOKMERGELIB_EXPORT MergeContactSelectListWidget : public QWidget
Q_OBJECT
public:
explicit MergeContactSelectListWidget(QWidget *parent = nullptr);
~MergeContactSelectListWidget();
~MergeContactSelectListWidget() override;
void setContacts(MergeContacts::ConflictInformation conflictType, const KContacts::Addressee::List &lst);
Q_REQUIRED_RESULT int selectedContact() const;
......
......@@ -16,7 +16,7 @@ class MergeContactShowResultTabWidget : public QTabWidget
Q_OBJECT
public:
explicit MergeContactShowResultTabWidget(QWidget *parent = nullptr);
~MergeContactShowResultTabWidget();
~MergeContactShowResultTabWidget() override;
void updateTabWidget();
......
......@@ -22,7 +22,7 @@ class MailSenderJob : public QObject
public:
explicit MailSenderJob(const Akonadi::Item::List &listItem, QObject *parent = nullptr);
~MailSenderJob();
~MailSenderJob() override;
void start();
......
......@@ -20,7 +20,7 @@ class SendVcardsJob : public QObject
Q_OBJECT
public:
explicit SendVcardsJob(const Akonadi::Item::List &listItem, QObject *parent = nullptr);
~SendVcardsJob();
~SendVcardsJob() override;
Q_REQUIRED_RESULT bool start();
......
......@@ -14,7 +14,7 @@ class LIBKMAILMARKDOWN_EXPORT MarkdownConverter : public QObject
Q_OBJECT
public:
explicit MarkdownConverter(QObject *parent = nullptr);
~MarkdownConverter();
~MarkdownConverter() override;
Q_REQUIRED_RESULT QString convertTextToMarkdown(const QString &str);
Q_REQUIRED_RESULT bool enableEmbeddedLabel() const;
......
......@@ -16,7 +16,7 @@ class LIBKMAILMARKDOWN_EXPORT MarkdownCreateImageDialog : public QDialog
Q_OBJECT
public:
explicit MarkdownCreateImageDialog(QWidget *parent = nullptr);
~MarkdownCreateImageDialog();
~MarkdownCreateImageDialog() override;
Q_REQUIRED_RESULT QString linkStr() const;
private:
void writeConfig();
......
......@@ -18,7 +18,7 @@ class LIBKMAILMARKDOWNPRIVATE_TESTS_EXPORT MarkdownCreateImageWidget : public QW
Q_OBJECT
public:
explicit MarkdownCreateImageWidget(QWidget *parent = nullptr);
~MarkdownCreateImageWidget();
~MarkdownCreateImageWidget() override;
Q_REQUIRED_RESULT QString linkStr() const;
Q_SIGNALS:
......
......@@ -16,7 +16,7 @@ class LIBKMAILMARKDOWN_EXPORT MarkdownCreateLinkDialog : public QDialog
Q_OBJECT
public:
explicit MarkdownCreateLinkDialog(QWidget *parent = nullptr);
~MarkdownCreateLinkDialog();
~MarkdownCreateLinkDialog() override;
Q_REQUIRED_RESULT QString linkStr() const;
private:
void writeConfig();
......
......@@ -15,7 +15,7 @@ class LIBKMAILMARKDOWNPRIVATE_TESTS_EXPORT MarkdownCreateLinkWidget : public QWi
Q_OBJECT
public:
explicit MarkdownCreateLinkWidget(QWidget *parent = nullptr);
~MarkdownCreateLinkWidget();
~MarkdownCreateLinkWidget() override;
Q_REQUIRED_RESULT QString linkStr() const;
Q_SIGNALS:
......
......@@ -15,7 +15,7 @@ class LIBKMAILMARKDOWN_EXPORT MarkdownPreviewDialog : public QDialog
Q_OBJECT
public:
explicit MarkdownPreviewDialog(QWidget *parent = nullptr);
~MarkdownPreviewDialog();
~MarkdownPreviewDialog() override;
void setText(const QString &str);
void setConverterSettings(bool enableEmbeddedLabel, bool enableExtraDefinitionLists);
......
......@@ -17,7 +17,7 @@ class LIBKMAILMARKDOWNPRIVATE_TESTS_EXPORT MarkdownPreviewWidget : public QWidge
Q_OBJECT
public:
explicit MarkdownPreviewWidget(QWidget *parent = nullptr);
~MarkdownPreviewWidget();
~MarkdownPreviewWidget() override;
void setConverterSettings(bool enableEmbeddedLabel, bool enableExtraDefinitionLists);
public Q_SLOTS:
......
......@@ -17,7 +17,7 @@ class SelectMailWidget : public QWidget
Q_OBJECT
public:
explicit SelectMailWidget(QWidget *parent = nullptr);
~SelectMailWidget();
~SelectMailWidget() override;
Q_REQUIRED_RESULT QStringList selectedEmails() const;
......
......@@ -14,7 +14,7 @@ class InsertShorturlConfigureWidget : public QWidget
Q_OBJECT
public:
explicit InsertShorturlConfigureWidget(QWidget *parent = nullptr);
~InsertShorturlConfigureWidget();
~InsertShorturlConfigureWidget() override;
void writeConfig();
private:
......
......@@ -14,7 +14,7 @@ class QUICKTEXT_EXPORT QuickTextConfigureDialog : public QDialog
Q_OBJECT
public:
explicit QuickTextConfigureDialog(QWidget *parent = nullptr);
~QuickTextConfigureDialog();
~QuickTextConfigureDialog() override;
protected:
void closeEvent(QCloseEvent *e) override;
......
......@@ -15,7 +15,7 @@ class QUICKTEXT_EXPORT QuickTextConfigureWidget : public QWidget
Q_OBJECT
public:
explicit QuickTextConfigureWidget(QWidget *parent = nullptr);
~QuickTextConfigureWidget();
~QuickTextConfigureWidget() override;
void save();
void importQuickText();
void exportQuickText();
......
......@@ -27,7 +27,7 @@ public:
/**
* Destroys the snippets manager.
*/
~QuicktextManager();
~QuicktextManager() override;
/**
* Returns the model that represents the snippets.
*/
......
......@@ -20,7 +20,7 @@ class QUICKTEXT_EXPORT QuickTextMenu : public QObject
Q_OBJECT
public:
explicit QuickTextMenu(QWidget *parentWidget, QObject *parent = nullptr);
~QuickTextMenu();
~QuickTextMenu() override;
QMenu *menu() const;
void setPluginComposerInterface(MessageComposer::PluginComposerInterface *composerInterface);
......
/*
/*
SPDX-FileCopyrightText: 2019-2020 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
......@@ -21,7 +21,7 @@ class QUICKTEXT_EXPORT QuickTextWidget : public QWidget
Q_OBJECT
public:
explicit QuickTextWidget(QWidget *parent = nullptr);
~QuickTextWidget();
~QuickTextWidget() override;
void save();
void importQuickText();
......
......@@ -14,7 +14,7 @@ class ZoomLabel : public QLabel
Q_OBJECT
public:
explicit ZoomLabel(QWidget *parent = nullptr);
~ZoomLabel();
~ZoomLabel() override;
void setZoomLabel(int value);
};
......
......@@ -20,7 +20,7 @@ class AutomaticAddContactsConfigureTab : public QWidget
Q_OBJECT
public:
explicit AutomaticAddContactsConfigureTab(QWidget *parent = nullptr);
~AutomaticAddContactsConfigureTab();
~AutomaticAddContactsConfigureTab() override;
void loadSettings();
void saveSettings();
......
......@@ -15,7 +15,7 @@ class AutomaticAddContactsJob : public QObject
Q_OBJECT
public:
explicit AutomaticAddContactsJob(QObject *parent = nullptr);
~AutomaticAddContactsJob();
~AutomaticAddContactsJob() override;
void start();
......
......@@ -19,7 +19,7 @@ class AutomaticAddContactsTabWidget : public QWidget
Q_OBJECT
public:
explicit AutomaticAddContactsTabWidget(QWidget *parent = nullptr, QAbstractItemModel *model = nullptr);
~AutomaticAddContactsTabWidget();
~AutomaticAddContactsTabWidget() override;
void resetSettings();
void saveSettings();
......
......@@ -14,7 +14,7 @@ class CheckBeforeSendUpdateSmtpDialog : public QDialog
Q_OBJECT
public:
explicit CheckBeforeSendUpdateSmtpDialog(QWidget *parent = nullptr);
~CheckBeforeSendUpdateSmtpDialog();
~CheckBeforeSendUpdateSmtpDialog() override;
Q_REQUIRED_RESULT bool changeSmtp() const;
private:
......
......@@ -15,7 +15,7 @@ class CheckDuplicateEmailsDialog : public QDialog
Q_OBJECT
public:
explicit CheckDuplicateEmailsDialog(QWidget *parent = nullptr);
~CheckDuplicateEmailsDialog();
~CheckDuplicateEmailsDialog() override;
void setDuplicatedEmails(const QMap<QString, int> &emails);
private:
......
......@@ -14,7 +14,7 @@ class CheckAttachmentDialog : public QDialog
Q_OBJECT
public:
explicit CheckAttachmentDialog(QWidget *parent = nullptr);
~CheckAttachmentDialog();
~CheckAttachmentDialog() override;
void setEmails(const QStringList &emails);
private:
......
......@@ -20,7 +20,7 @@ class ConfirmAddressConfigureTab : public QWidget
Q_OBJECT
public:
explicit ConfirmAddressConfigureTab(QWidget *parent = nullptr);
~ConfirmAddressConfigureTab();
~ConfirmAddressConfigureTab() override;
void loadSettings(const KConfigGroup &grp);
void saveSettings(KConfigGroup &grp);
......
......@@ -16,7 +16,7 @@ class ConfirmAddressConfigureTabWidget : public QWidget
Q_OBJECT
public:
explicit ConfirmAddressConfigureTabWidget(QWidget *parent = nullptr);
~ConfirmAddressConfigureTabWidget();
~ConfirmAddressConfigureTabWidget() override;
void resetSettings();
void loadSettings(const KConfigGroup &grp);
......
......@@ -14,7 +14,7 @@ class ConfirmAddressDialog : public QDialog
Q_OBJECT
public:
explicit ConfirmAddressDialog(QWidget *parent = nullptr);
~ConfirmAddressDialog();
~ConfirmAddressDialog() override;
void setValidAddresses(const QStringList &addresses);
void setInvalidAddresses(const QStringList &addresses);
......
......@@ -15,7 +15,7 @@ class ConfirmAddressWidget : public QWidget
Q_OBJECT