mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
Visual cue for filter
.. by highlighting chart title too if a filter is being applied. This is important to warn users that the data being plotted is adjusted to the search/filter (either globally or in the chart settings).
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include <QDebug>
|
||||
|
||||
SearchBox::SearchBox(MainWindow *main, QWidget *parent)
|
||||
: QLineEdit(parent), main(main)
|
||||
: QLineEdit(parent), main(main), filtered(false)
|
||||
{
|
||||
setFixedHeight(21);
|
||||
//clear button
|
||||
@@ -164,6 +164,7 @@ void SearchBox::searchSubmit()
|
||||
{
|
||||
// return hit / key pressed
|
||||
if (text() != "") {
|
||||
filtered = true;
|
||||
mode == Search ? submitQuery(text()) : submitFilter(text());
|
||||
}
|
||||
}
|
||||
@@ -171,6 +172,7 @@ void SearchBox::searchSubmit()
|
||||
void SearchBox::clearClicked()
|
||||
{
|
||||
setText("");
|
||||
filtered = false;
|
||||
//mode == Search ? clearQuery() : clearFilter();
|
||||
setGood();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user