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:
Mark Liversedge
2013-04-26 12:44:51 +01:00
parent c79d18fd03
commit fdf2149087
17 changed files with 78 additions and 12 deletions

View File

@@ -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();
}