Commit 16a46c68 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override

parent 93730b75
......@@ -19,7 +19,7 @@ class CollectionQuotaWidget : public QWidget
Q_OBJECT
public:
explicit CollectionQuotaWidget(QWidget *parent);
~CollectionQuotaWidget()
~CollectionQuotaWidget() override
= default;
void setQuotaInfo(qint64 currentValue, qint64 maxValue);
......
......@@ -36,7 +36,7 @@ class ComposerPageGeneralTab : public ConfigModuleTab
Q_OBJECT
public:
explicit ComposerPageGeneralTab(QWidget *parent = nullptr);
QString helpAnchor() const;
Q_REQUIRED_RESULT QString helpAnchor() const;
void save() override;
private:
......
......@@ -21,7 +21,7 @@ public:
{
}
~ConfigModuleTab()
~ConfigModuleTab() override
= default;
virtual void save() = 0;
......
......@@ -18,7 +18,7 @@ class AddEmailToExistingContactDialog : public QDialog
Q_OBJECT
public:
explicit AddEmailToExistingContactDialog(QWidget *parent);
~AddEmailToExistingContactDialog();
~AddEmailToExistingContactDialog() override;
Q_REQUIRED_RESULT Akonadi::Item selectedContact() const;
......
......@@ -17,7 +17,7 @@ class KMKnotify : public QDialog
Q_OBJECT
public:
explicit KMKnotify(QWidget *parent);
~KMKnotify();
~KMKnotify() override;
void setCurrentNotification(const QString &name);
......
......@@ -14,7 +14,7 @@ class SpellCheckerConfigDialog : public Sonnet::ConfigDialog
Q_OBJECT
public:
explicit SpellCheckerConfigDialog(QWidget *parent = nullptr);
~SpellCheckerConfigDialog();
~SpellCheckerConfigDialog() override;
private:
void readConfig();
......
......@@ -29,7 +29,7 @@ public:
};
explicit CodecAction(Mode mode, QObject *parent = nullptr);
~CodecAction();
~CodecAction() override;
/**
The name of the charset, if a specific encoding was selected, or a list
......
......@@ -16,7 +16,7 @@ class KMComposerCreateNewComposerJob : public QObject
Q_OBJECT
public:
explicit KMComposerCreateNewComposerJob(QObject *parent = nullptr);
~KMComposerCreateNewComposerJob();
~KMComposerCreateNewComposerJob() override;
void start();
void setCollectionForNewMessage(const Akonadi::Collection &collectionForNewMessage);
......
......@@ -14,7 +14,7 @@ class KMComposerGlobalAction : public QObject
Q_OBJECT
public:
explicit KMComposerGlobalAction(KMComposerWin *composerWin, QObject *parent = nullptr);
~KMComposerGlobalAction();
~KMComposerGlobalAction() override;
public Q_SLOTS:
void slotUndo();
......
......@@ -17,7 +17,7 @@ class KMComposerUpdateTemplateJob : public QObject
Q_OBJECT
public:
explicit KMComposerUpdateTemplateJob(QObject *parent = nullptr);
~KMComposerUpdateTemplateJob();
~KMComposerUpdateTemplateJob() override;
void start();
void setMsg(const KMime::Message::Ptr &msg);
......
......@@ -19,7 +19,7 @@ class KMailPluginEditorCheckBeforeSendManagerInterface : public QObject
Q_OBJECT
public:
explicit KMailPluginEditorCheckBeforeSendManagerInterface(QObject *parent = nullptr);
~KMailPluginEditorCheckBeforeSendManagerInterface();
~KMailPluginEditorCheckBeforeSendManagerInterface() override;
QWidget *parentWidget() const;
void setParentWidget(QWidget *parentWidget);
......
......@@ -20,7 +20,7 @@ class KMailPluginEditorConvertTextManagerInterface : public QObject
Q_OBJECT
public:
explicit KMailPluginEditorConvertTextManagerInterface(QObject *parent = nullptr);
~KMailPluginEditorConvertTextManagerInterface();
~KMailPluginEditorConvertTextManagerInterface() override;
QWidget *parentWidget() const;
void setParentWidget(QWidget *parentWidget);
......
......@@ -17,7 +17,7 @@ class KMailPluginEditorInitManagerInterface : public QObject
Q_OBJECT
public:
explicit KMailPluginEditorInitManagerInterface(QObject *parent = nullptr);
~KMailPluginEditorInitManagerInterface() = default;
~KMailPluginEditorInitManagerInterface() override = default;
KPIMTextEdit::RichTextComposer *richTextEditor() const;
void setRichTextEditor(KPIMTextEdit::RichTextComposer *richTextEditor);
......
......@@ -23,7 +23,7 @@ class KMailPluginEditorManagerInterface : public QObject
Q_OBJECT
public:
explicit KMailPluginEditorManagerInterface(QObject *parent = nullptr);
~KMailPluginEditorManagerInterface();
~KMailPluginEditorManagerInterface() override;
KPIMTextEdit::RichTextEditor *richTextEditor() const;
void setRichTextEditor(KPIMTextEdit::RichTextEditor *richTextEditor);
......
......@@ -20,7 +20,7 @@ class KMailPluginGrammarEditorManagerInterface : public QObject
Q_OBJECT
public:
explicit KMailPluginGrammarEditorManagerInterface(QObject *parent = nullptr);
~KMailPluginGrammarEditorManagerInterface() = default;
~KMailPluginGrammarEditorManagerInterface() override = default;
KPIMTextEdit::RichTextComposer *richTextEditor() const;
void setRichTextEditor(KPIMTextEdit::RichTextComposer *richTextEditor);
......
......@@ -16,7 +16,7 @@ class KMAILTESTS_TESTS_EXPORT PotentialPhishingDetailDialog : public QDialog
Q_OBJECT
public:
explicit PotentialPhishingDetailDialog(QWidget *parent = nullptr);
~PotentialPhishingDetailDialog();
~PotentialPhishingDetailDialog() override;
void fillList(const QStringList &lst);
......
......@@ -16,7 +16,7 @@ class KMAILTESTS_TESTS_EXPORT PotentialPhishingDetailWidget : public QWidget
Q_OBJECT
public:
explicit PotentialPhishingDetailWidget(QWidget *parent = nullptr);
~PotentialPhishingDetailWidget();
~PotentialPhishingDetailWidget() override;
void save();
......
......@@ -17,7 +17,7 @@ class KMAILTESTS_TESTS_EXPORT PotentialPhishingEmailJob : public QObject
Q_OBJECT
public:
explicit PotentialPhishingEmailJob(QObject *parent = nullptr);
~PotentialPhishingEmailJob();
~PotentialPhishingEmailJob() override;
void setEmailWhiteList(const QStringList &emails);
void setPotentialPhishingEmails(const QStringList &emails);
......
......@@ -15,7 +15,7 @@ class KMAILTESTS_TESTS_EXPORT PotentialPhishingEmailWarning : public KMessageWid
Q_OBJECT
public:
explicit PotentialPhishingEmailWarning(QWidget *parent = nullptr);
~PotentialPhishingEmailWarning();
~PotentialPhishingEmailWarning() override;
void setPotentialPhisingEmail(const QStringList &lst);
......
......@@ -15,7 +15,7 @@ class AttachmentAddedFromExternalWarning : public KMessageWidget
Q_OBJECT
public:
explicit AttachmentAddedFromExternalWarning(QWidget *parent = nullptr);
~AttachmentAddedFromExternalWarning();
~AttachmentAddedFromExternalWarning() override;
void setAttachmentNames(const QStringList &lst);
};
......
......@@ -14,7 +14,7 @@ class AttachmentMissingWarning : public KMessageWidget
Q_OBJECT
public:
explicit AttachmentMissingWarning(QWidget *parent = nullptr);
~AttachmentMissingWarning();
~AttachmentMissingWarning() override;
void slotFileAttached();
Q_SIGNALS:
......
......@@ -14,7 +14,7 @@ class KMAILTESTS_TESTS_EXPORT ExternalEditorWarning : public KMessageWidget
Q_OBJECT
public:
explicit ExternalEditorWarning(QWidget *parent = nullptr);
~ExternalEditorWarning();
~ExternalEditorWarning() override;
};
#endif // EXTERNALEDITORWARNING_H
......@@ -15,7 +15,7 @@ class KMAILTESTS_TESTS_EXPORT IncorrectIdentityFolderWarning : public KMessageWi
Q_OBJECT
public:
explicit IncorrectIdentityFolderWarning(QWidget *parent = nullptr);
~IncorrectIdentityFolderWarning();
~IncorrectIdentityFolderWarning() override;
void mailTransportIsInvalid();
void fccIsInvalid();
......
......@@ -16,7 +16,7 @@ class KMAILTESTS_TESTS_EXPORT CryptoStateIndicatorWidget : public QWidget
Q_OBJECT
public:
explicit CryptoStateIndicatorWidget(QWidget *parent = nullptr);
~CryptoStateIndicatorWidget();
~CryptoStateIndicatorWidget() override;
void updateSignatureAndEncrypionStateIndicators(bool isSign, bool isEncrypted);
......
......@@ -15,7 +15,7 @@ class FolderArchiveAgentCheckCollection : public QObject
Q_OBJECT
public:
explicit FolderArchiveAgentCheckCollection(FolderArchiveAccountInfo *info, QObject *parent = nullptr);
~FolderArchiveAgentCheckCollection();
~FolderArchiveAgentCheckCollection() override;
void start();
......
......@@ -17,7 +17,7 @@ class FolderArchiveAgentJob : public QObject
Q_OBJECT
public:
explicit FolderArchiveAgentJob(FolderArchiveManager *manager, FolderArchiveAccountInfo *info, const Akonadi::Item::List &lstItem, QObject *parent = nullptr);
~FolderArchiveAgentJob();
~FolderArchiveAgentJob() override;
void start();
......
......@@ -23,7 +23,7 @@ class FolderArchiveCache : public QObject
Q_OBJECT
public:
explicit FolderArchiveCache(QObject *parent = nullptr);
~FolderArchiveCache();
~FolderArchiveCache() override;
void addToCache(const QString &resourceName, Akonadi::Collection::Id id);
......
......@@ -23,7 +23,7 @@ class FolderArchiveManager : public QObject
Q_OBJECT
public:
explicit FolderArchiveManager(QObject *parent = nullptr);
~FolderArchiveManager();
~FolderArchiveManager() override;
void load();
void setArchiveItems(const Akonadi::Item::List &items, const QString &instanceName);
......
......@@ -24,7 +24,7 @@ class FolderShortcutCommand : public QObject
public:
FolderShortcutCommand(QWidget *mainwidget, const Akonadi::Collection &col);
~FolderShortcutCommand();
~FolderShortcutCommand() override;
public Q_SLOTS:
void start();
......
......@@ -24,7 +24,7 @@ public:
};
explicit IdentityAddVcardDialog(const QStringList &shadowIdentities, QWidget *parent = nullptr);
~IdentityAddVcardDialog();
~IdentityAddVcardDialog() override;
Q_REQUIRED_RESULT DuplicateMode duplicateMode() const;
Q_REQUIRED_RESULT QString duplicateVcardFromIdentity() const;
......
......@@ -60,7 +60,7 @@ class IdentityDialog : public QDialog
Q_OBJECT
public:
explicit IdentityDialog(QWidget *parent = nullptr);
~IdentityDialog();
~IdentityDialog() override;
void setIdentity(/*_not_ const*/ KIdentityManagement::Identity &ident);
......
......@@ -19,7 +19,7 @@ class IdentityFolderRequester : public MailCommon::FolderRequester
Q_OBJECT
public:
explicit IdentityFolderRequester(QWidget *parent = nullptr);
~IdentityFolderRequester();
~IdentityFolderRequester() override;
void setIsInvalidFolder(const Akonadi::Collection &col);
private:
......
......@@ -14,7 +14,7 @@ class IdentityInvalidFolder : public KMessageWidget
Q_OBJECT
public:
explicit IdentityInvalidFolder(QWidget *parent = nullptr);
~IdentityInvalidFolder();
~IdentityInvalidFolder() override;
void setErrorMessage(const QString &msg);
};
......
......@@ -28,7 +28,7 @@ class XFaceConfigurator : public QWidget
Q_OBJECT
public:
explicit XFaceConfigurator(QWidget *parent = nullptr);
~XFaceConfigurator();
~XFaceConfigurator() override;
Q_REQUIRED_RESULT bool isXFaceEnabled() const;
void setXFaceEnabled(bool enable);
......
......@@ -16,7 +16,7 @@ class ComposeNewMessageJob : public QObject
Q_OBJECT
public:
explicit ComposeNewMessageJob(QObject *parent = nullptr);
~ComposeNewMessageJob();
~ComposeNewMessageJob() override;
void start();
void setFolderSettings(const QSharedPointer<MailCommon::FolderSettings> &folder);
......
......@@ -18,7 +18,7 @@ class KMAILTESTS_TESTS_EXPORT CreateFollowupReminderOnExistingMessageJob : publi
Q_OBJECT
public:
explicit CreateFollowupReminderOnExistingMessageJob(QObject *parent = nullptr);
~CreateFollowupReminderOnExistingMessageJob();
~CreateFollowupReminderOnExistingMessageJob() override;
void start();
......
......@@ -29,7 +29,7 @@ class KMAILTESTS_TESTS_EXPORT CreateForwardMessageJob : public QObject
Q_OBJECT
public:
explicit CreateForwardMessageJob(QObject *parent = nullptr);
~CreateForwardMessageJob();
~CreateForwardMessageJob() override;
void start();
void setSettings(const CreateForwardMessageJobSettings &value);
......
......@@ -34,7 +34,7 @@ class KMAILTESTS_TESTS_EXPORT CreateReplyMessageJob : public QObject
Q_OBJECT
public:
explicit CreateReplyMessageJob(QObject *parent = nullptr);
~CreateReplyMessageJob();
~CreateReplyMessageJob() override;
void start();
......
......@@ -17,7 +17,7 @@ class KMAILTESTS_TESTS_EXPORT HandleClickedUrlJob : public QObject
Q_OBJECT
public:
explicit HandleClickedUrlJob(QObject *parent = nullptr);
~HandleClickedUrlJob();
~HandleClickedUrlJob() override;
void start();
......
......@@ -18,7 +18,7 @@ class MarkAllMessagesAsReadInFolderAndSubFolderJob : public QObject
Q_OBJECT
public:
explicit MarkAllMessagesAsReadInFolderAndSubFolderJob(QObject *parent = nullptr);
~MarkAllMessagesAsReadInFolderAndSubFolderJob();
~MarkAllMessagesAsReadInFolderAndSubFolderJob() override;
void setTopLevelCollection(const Akonadi::Collection &topLevelCollection);
......
......@@ -42,7 +42,7 @@ class NewMessageJob : public QObject
Q_OBJECT
public:
explicit NewMessageJob(QObject *parent = nullptr);
~NewMessageJob();
~NewMessageJob() override;
void start();
void setNewMessageJobSettings(const NewMessageJobSettings &newMessageJobSettings);
......
......@@ -38,7 +38,7 @@ class OpenComposerHiddenJob : public QObject
Q_OBJECT
public:
explicit OpenComposerHiddenJob(QObject *parent = nullptr);
~OpenComposerHiddenJob();
~OpenComposerHiddenJob() override;
void start();
void setSettings(const OpenComposerHiddenJobSettings &settings);
......
......@@ -51,7 +51,7 @@ class OpenComposerJob : public QObject
Q_OBJECT
public:
explicit OpenComposerJob(QObject *parent = nullptr);
~OpenComposerJob();
~OpenComposerJob() override;
void start();
void setOpenComposerSettings(const OpenComposerSettings &openComposerSettings);
......
......@@ -16,7 +16,7 @@ class RemoveCollectionJob : public QObject
Q_OBJECT
public:
explicit RemoveCollectionJob(QObject *parent = nullptr);
~RemoveCollectionJob();
~RemoveCollectionJob() override;
void setMainWidget(KMMainWidget *mainWidget);
......
......@@ -19,7 +19,7 @@ class RemoveDuplicateMailJob : public QObject
Q_OBJECT
public:
explicit RemoveDuplicateMailJob(QItemSelectionModel *selectionModel, QWidget *widget, QObject *parent = nullptr);
~RemoveDuplicateMailJob();
~RemoveDuplicateMailJob() override;
void start();
......
......@@ -19,7 +19,7 @@ class RemoveDuplicateMessageInFolderAndSubFolderJob : public QObject
Q_OBJECT
public:
explicit RemoveDuplicateMessageInFolderAndSubFolderJob(QObject *parent = nullptr, QWidget *parentWidget = nullptr);
~RemoveDuplicateMessageInFolderAndSubFolderJob();
~RemoveDuplicateMessageInFolderAndSubFolderJob() override;
void start();
......
......@@ -14,7 +14,7 @@ class SaveAsFileJob : public QObject
Q_OBJECT
public:
explicit SaveAsFileJob(QObject *parent = nullptr);
~SaveAsFileJob();
~SaveAsFileJob() override;
void start();
void setHtmlMode(bool htmlMode);
......
......@@ -13,7 +13,7 @@ class KMLaunchExternalComponent : public QObject
Q_OBJECT
public:
explicit KMLaunchExternalComponent(QWidget *parentWidget, QObject *parent = nullptr);
~KMLaunchExternalComponent();
~KMLaunchExternalComponent() override;
public Q_SLOTS:
void slotConfigureSendLater();
......
......@@ -28,7 +28,7 @@ public:
/** constructor */
explicit KMSystemTray(QObject *parent = nullptr);
/** destructor */
~KMSystemTray();
~KMSystemTray() override;
void hideKMail();
......
......@@ -19,7 +19,7 @@ class PluginView : public QTreeWidget
public:
explicit PluginView(QWidget *parent);
~PluginView();
~PluginView() override;
};
class KCMKontactSummary : public KCModule
......
......@@ -24,7 +24,7 @@ class ManageShowCollectionProperties : public QObject
Q_OBJECT
public:
explicit ManageShowCollectionProperties(KMMainWidget *mainWidget, QObject *parent = nullptr);
~ManageShowCollectionProperties();
~ManageShowCollectionProperties() override;
public Q_SLOTS:
void slotFolderMailingListProperties();
......
......@@ -43,7 +43,7 @@ class MessageActions : public QObject
Q_OBJECT
public:
explicit MessageActions(KActionCollection *ac, QWidget *parent);
~MessageActions();
~MessageActions() override;
void setMessageView(KMReaderWin *msgView);
/**
......
......@@ -22,7 +22,7 @@ class CheckIndexingJob : public QObject
Q_OBJECT
public:
explicit CheckIndexingJob(Akonadi::Search::PIM::IndexedItems *indexedItems, QObject *parent = nullptr);
~CheckIndexingJob();
~CheckIndexingJob() override;
void setCollection(const Akonadi::Collection &col);
......
......@@ -23,7 +23,7 @@ class CheckIndexingManager : public QObject
Q_OBJECT
public:
explicit CheckIndexingManager(Akonadi::Search::PIM::IndexedItems *indexer, QObject *parent = nullptr);
~CheckIndexingManager();
~CheckIndexingManager() override;
void start(QAbstractItemModel *collectionModel);
......
......@@ -20,7 +20,7 @@ class IncompleteIndexDialog : public QDialog
public:
explicit IncompleteIndexDialog(const QVector<qint64> &unindexedCollections, QWidget *parent = nullptr);
~IncompleteIndexDialog();
~IncompleteIndexDialog() override;
private Q_SLOTS:
......
......@@ -15,7 +15,7 @@ class KMailSearchPatternEdit : public MailCommon::SearchPatternEdit
Q_OBJECT
public:
explicit KMailSearchPatternEdit(QWidget *parent = nullptr);
~KMailSearchPatternEdit();
~KMailSearchPatternEdit() override;
};
}
#endif // KMailSearchPatternEdit_H
......@@ -15,7 +15,7 @@ class SearchPatternWarning : public KMessageWidget
Q_OBJECT
public:
explicit SearchPatternWarning(QWidget *parent = nullptr);
~SearchPatternWarning();
~SearchPatternWarning() override;
void showWarningPattern(const QStringList &lstError);
void hideWarningPattern();
......
......@@ -50,7 +50,7 @@ public:
*/
TagActionManager(QObject *parent, KActionCollection *actionCollection, MessageActions *messageActions, KXMLGUIClient *guiClient);
~TagActionManager();
~TagActionManager() override;
/**
* Removes all actions from the GUI again
......
......@@ -20,7 +20,7 @@ class TagMonitorManager : public QObject
Q_OBJECT
public: