Commit 634dd530 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to set code

parent 15304ade
...@@ -25,7 +25,11 @@ using namespace KSieveUi; ...@@ -25,7 +25,11 @@ using namespace KSieveUi;
RegexpEditorLineEdit::RegexpEditorLineEdit(QWidget *parent) RegexpEditorLineEdit::RegexpEditorLineEdit(QWidget *parent)
: KSieveUi::AbstractRegexpEditorLineEdit(parent) : KSieveUi::AbstractRegexpEditorLineEdit(parent)
{ {
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mLineEdit = new QLineEdit(this);
mLineEdit->setObjectName(QStringLiteral("lineedit"));
mainLayout->addWidget(mLineEdit);
} }
RegexpEditorLineEdit::~RegexpEditorLineEdit() RegexpEditorLineEdit::~RegexpEditorLineEdit()
...@@ -38,3 +42,14 @@ void RegexpEditorLineEdit::switchToRegexpEditorLineEdit() ...@@ -38,3 +42,14 @@ void RegexpEditorLineEdit::switchToRegexpEditorLineEdit()
{ {
//TODO //TODO
} }
void KSieveUi::RegexpEditorLineEdit::setCode(const QString &str)
{
//TODO
}
QString KSieveUi::RegexpEditorLineEdit::code() const
{
//TODO
return {};
}
...@@ -32,8 +32,12 @@ public: ...@@ -32,8 +32,12 @@ public:
~RegexpEditorLineEdit(); ~RegexpEditorLineEdit();
void switchToRegexpEditorLineEdit() Q_DECL_OVERRIDE; void switchToRegexpEditorLineEdit() Q_DECL_OVERRIDE;
void setCode(const QString &str) Q_DECL_OVERRIDE;
QString code() const Q_DECL_OVERRIDE;
private: private:
QLineEdit *mLineEdit; QLineEdit *mLineEdit;
}; };
} }
......
...@@ -32,6 +32,8 @@ public: ...@@ -32,6 +32,8 @@ public:
~AbstractRegexpEditorLineEdit(); ~AbstractRegexpEditorLineEdit();
virtual void switchToRegexpEditorLineEdit() = 0; virtual void switchToRegexpEditorLineEdit() = 0;
virtual void setCode(const QString &str) = 0;
virtual QString code() const = 0;
}; };
} }
......
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