mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Add delete button to manage filters (#4493)
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -115,7 +115,8 @@ class EditNamedSearches : public QDialog
|
||||
*updateButton,
|
||||
*upButton,
|
||||
*downButton,
|
||||
*deleteButton;
|
||||
*deleteButton,
|
||||
*closeButton;
|
||||
QIcon searchIcon, filterIcon;
|
||||
|
||||
private slots:
|
||||
|
||||
Reference in New Issue
Block a user