Commit 5316ff99 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare to activate filter

parent 29193607
Pipeline #64359 passed with stage
in 40 minutes and 45 seconds
......@@ -46,6 +46,7 @@ SearchLineStatus::SearchLineStatus(QWidget *parent)
} else {
qCWarning(MESSAGELIST_LOG) << "Clear button name was changed ! Please verify qt code";
}
connect(FilterSavedManager::self(), &FilterSavedManager::activateFilter, this, &SearchLineStatus::slotActivateFilter);
}
SearchLineStatus::~SearchLineStatus()
......@@ -122,13 +123,15 @@ void SearchLineStatus::initializeActions()
connect(mFilterSavedMenu, &FilterSavedMenu::configureFilters, this, &SearchLineStatus::slotConfigureFilters);
}
void SearchLineStatus::slotActivateFilter(const QString &identifier)
{
// TODO
}
void SearchLineStatus::slotConfigureFilters()
{
QPointer<ConfigureFiltersDialog> dlg = new ConfigureFiltersDialog(this);
if (dlg->exec()) {
// TODO
}
delete dlg;
ConfigureFiltersDialog dlg(this);
dlg.exec();
}
void SearchLineStatus::slotSaveFilter()
......@@ -137,8 +140,6 @@ void SearchLineStatus::slotSaveFilter()
const QString str = QInputDialog::getText(this, i18n("Filter Name:"), i18n("Name:"), QLineEdit::Normal, {}, &ok);
if (ok && !str.trimmed().isEmpty()) {
Q_EMIT saveFilter(str);
// TODO FilterSavedManager::self()->saveFilter(,str);
// TODO
}
}
......
......@@ -65,6 +65,7 @@ private:
void showSavedFiltersMenu();
void slotSaveFilter();
void slotConfigureFilters();
void slotActivateFilter(const QString &identifier);
bool mLocked = false;
bool mHasFilter = false;
......
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