Commit 06a8eaba authored by Laurent Montel's avatar Laurent Montel 😁

Add missing method

parent eab42b8b
cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.5.45")
set(PIM_VERSION "5.5.46")
project(libksieve VERSION ${PIM_VERSION})
......
......@@ -53,3 +53,14 @@ QString KSieveUi::RegexpEditorLineEdit::code() const
{
return mLineEdit->text();
}
void KSieveUi::RegexpEditorLineEdit::setClearButtonEnabled(bool b)
{
mLineEdit->setClearButtonEnabled(b);
}
void KSieveUi::RegexpEditorLineEdit::setPlaceholderText(const QString &str)
{
mLineEdit->setPlaceholderText(str);
}
......@@ -35,6 +35,8 @@ public:
void switchToRegexpEditorLineEdit(bool regexpEditor) override;
void setCode(const QString &str) override;
QString code() const override;
void setClearButtonEnabled(bool b) override;
void setPlaceholderText(const QString &str) override;
private:
QLineEdit *mLineEdit;
......
......@@ -35,6 +35,10 @@ public:
virtual void setCode(const QString &str) = 0;
virtual QString code() const = 0;
virtual void setClearButtonEnabled(bool b) = 0;
virtual void setPlaceholderText(const QString &str) = 0;
Q_SIGNALS:
void textChanged(const QString &);
};
......
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