Commit db13ec47 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override

parent 4ddefa63
Pipeline #53787 canceled with stage
......@@ -27,7 +27,7 @@ class KSIEVEUI_EXPORT CheckScriptJob : public QObject
Q_OBJECT
public:
explicit CheckScriptJob(QObject *parent = nullptr);
~CheckScriptJob();
~CheckScriptJob() override;
void setOriginalScript(const QString &script);
void setCurrentScript(const QString &script);
......
......@@ -21,7 +21,7 @@ class GenerateGlobalScriptJob : public QObject
Q_OBJECT
public:
explicit GenerateGlobalScriptJob(const QUrl &url, QObject *parent = nullptr);
~GenerateGlobalScriptJob();
~GenerateGlobalScriptJob() override;
void start();
void kill();
......
......@@ -26,7 +26,7 @@ class KSIEVEUI_TESTS_EXPORT ParseUserScriptJob : public QObject
public:
explicit ParseUserScriptJob(const QUrl &url, QObject *parent = nullptr);
~ParseUserScriptJob();
~ParseUserScriptJob() override;
void start();
void setAutoDelete(bool deleteMe);
......
......@@ -28,7 +28,7 @@ class KSIEVEUI_EXPORT RenameScriptJob : public QObject
Q_OBJECT
public:
explicit RenameScriptJob(QObject *parent = nullptr);
~RenameScriptJob();
~RenameScriptJob() override;
void setOldUrl(const QUrl &url);
void setIsActive(bool active);
......
......@@ -13,8 +13,8 @@ using namespace KSieveUi;
IncludeFileLineEdit::IncludeFileLineEdit(QWidget *parent)
: LineEditValidator(parent)
, mCompleter(new QCompleter(this))
{
mCompleter = new QCompleter(this);
mCompleter->setObjectName(QStringLiteral("completer"));
mCompleter->setCaseSensitivity(Qt::CaseInsensitive);
mStringListModel = new QStringListModel(this);
......
......@@ -23,7 +23,7 @@ public:
void setListOfIncludeFile(const QStringList &lst);
private:
QCompleter *mCompleter = nullptr;
QCompleter *const mCompleter;
QStringListModel *mStringListModel = nullptr;
};
}
......
......@@ -13,11 +13,11 @@ using namespace KSieveUi;
MoveImapFolderWidget::MoveImapFolderWidget(QWidget *parent)
: KSieveUi::AbstractMoveImapFolderWidget(parent)
, mLineEdit(new QLineEdit(this))
{
auto mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins({});
mLineEdit = new QLineEdit(this);
new KPIM::LineEditCatchReturnKey(mLineEdit, this);
mLineEdit->setObjectName(QStringLiteral("lineedit"));
mLineEdit->setClearButtonEnabled(true);
......
......@@ -27,7 +27,7 @@ public:
void setSieveImapAccountSettings(const KSieveUi::SieveImapAccountSettings &account) override;
private:
QLineEdit *mLineEdit = nullptr;
QLineEdit *const mLineEdit;
};
}
#endif // MOVEIMAPFOLDERWIDGET_H
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