Commit 095323a9 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #413 from thomasgubler/plotfilter

Do not filter/hide line in linechartwidget when checkbox of the line is ...
parents 879e1f6a d2e513c5
......@@ -712,13 +712,16 @@ void LinechartWidget::setPlotFilterLineEditFocus()
void LinechartWidget::filterCurve(const QString &key, bool match)
{
colorIcons[key]->setVisible(match);
curveNameLabels[key]->setVisible(match);
(*curveLabels)[key]->setVisible(match);
(*curveMeans)[key]->setVisible(match);
(*curveVariances)[key]->setVisible(match);
curveUnits[key]->setVisible(match);
checkBoxes[key]->setVisible(match);
if (!checkBoxes[key]->isChecked())
{
colorIcons[key]->setVisible(match);
curveNameLabels[key]->setVisible(match);
(*curveLabels)[key]->setVisible(match);
(*curveMeans)[key]->setVisible(match);
(*curveVariances)[key]->setVisible(match);
curveUnits[key]->setVisible(match);
checkBoxes[key]->setVisible(match);
}
}
void LinechartWidget::filterCurves(const QString &filter)
......
......@@ -114,7 +114,7 @@ public slots:
private slots:
/** Called when the user changes the time scale combobox. */
void timeScaleChanged(int index);
/** @brief Applies action on curve corresponding to key based on the bool match. I used to filter curves */
/** @brief Toggles visibility of curve based on bool match if corresponding checkbox is not checked */
void filterCurve(const QString &key, bool match);
protected:
......
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