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

Allow to define existing filter names

parent 51e60a33
Pipeline #65886 passed with stage
in 40 minutes and 26 seconds
...@@ -39,3 +39,8 @@ QString FilterNameDialog::filterName() const ...@@ -39,3 +39,8 @@ QString FilterNameDialog::filterName() const
{ {
return mFilterNameWidget->filterName(); return mFilterNameWidget->filterName();
} }
void FilterNameDialog::setExistingFilterNames(const QStringList &lst)
{
mFilterNameWidget->setExistingFilterNames(lst);
}
...@@ -23,6 +23,8 @@ public: ...@@ -23,6 +23,8 @@ public:
Q_REQUIRED_RESULT QString filterName() const; Q_REQUIRED_RESULT QString filterName() const;
void setExistingFilterNames(const QStringList &lst);
private: private:
FilterNameWidget *const mFilterNameWidget; FilterNameWidget *const mFilterNameWidget;
}; };
......
...@@ -39,3 +39,8 @@ QString FilterNameWidget::filterName() const ...@@ -39,3 +39,8 @@ QString FilterNameWidget::filterName() const
{ {
return mName->text(); return mName->text();
} }
void FilterNameWidget::setExistingFilterNames(const QStringList &lst)
{
mFilterListNames = lst;
}
...@@ -22,10 +22,12 @@ public: ...@@ -22,10 +22,12 @@ public:
Q_REQUIRED_RESULT QString filterName() const; Q_REQUIRED_RESULT QString filterName() const;
void setExistingFilterNames(const QStringList &lst);
Q_SIGNALS: Q_SIGNALS:
void updateOkButton(bool enabled); void updateOkButton(bool enabled);
private: private:
QStringList mFilterListNames;
QLineEdit *const mName; QLineEdit *const mName;
}; };
} }
......
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