Add delete button to manage filters (#4493)

This commit is contained in:
Paul Johnson
2024-05-22 14:51:10 +01:00
committed by GitHub
parent 77df5b372c
commit 5e3db39a49
2 changed files with 6 additions and 1 deletions

View File

@@ -301,6 +301,9 @@ EditNamedSearches::EditNamedSearches(QWidget *parent, Context *context) : QDialo
row4->addStretch();
deleteButton = new QPushButton(tr("Delete"), this);
row4->addWidget(deleteButton);
row4->addStretch();
closeButton = new QPushButton(tr("Close"), this);
row4->addWidget(closeButton);
// Populate the list of named searches
foreach(NamedSearch x, context->athlete->namedSearches->getList()) {
@@ -319,6 +322,7 @@ EditNamedSearches::EditNamedSearches(QWidget *parent, Context *context) : QDialo
// connect the buttons
connect(addButton, SIGNAL(clicked()), this, SLOT(addClicked()));
connect(deleteButton, SIGNAL(clicked()), this, SLOT(deleteClicked()));
connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
connect(updateButton, SIGNAL(clicked()), this, SLOT(updateClicked()));
connect(upButton, SIGNAL(clicked()), this, SLOT(upClicked()));
connect(downButton, SIGNAL(clicked()), this, SLOT(downClicked()));

View File

@@ -115,7 +115,8 @@ class EditNamedSearches : public QDialog
*updateButton,
*upButton,
*downButton,
*deleteButton;
*deleteButton,
*closeButton;
QIcon searchIcon, filterIcon;
private slots: