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
{
return mFilterNameWidget->filterName();
}
void FilterNameDialog::setExistingFilterNames(const QStringList &lst)
{
mFilterNameWidget->setExistingFilterNames(lst);
}
......@@ -23,6 +23,8 @@ public:
Q_REQUIRED_RESULT QString filterName() const;
void setExistingFilterNames(const QStringList &lst);
private:
FilterNameWidget *const mFilterNameWidget;
};
......
......@@ -39,3 +39,8 @@ QString FilterNameWidget::filterName() const
{
return mName->text();
}
void FilterNameWidget::setExistingFilterNames(const QStringList &lst)
{
mFilterListNames = lst;
}
......@@ -22,10 +22,12 @@ public:
Q_REQUIRED_RESULT QString filterName() const;
void setExistingFilterNames(const QStringList &lst);
Q_SIGNALS:
void updateOkButton(bool enabled);
private:
QStringList mFilterListNames;
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