Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
d2e513c5
Commit
d2e513c5
authored
Nov 10, 2013
by
Thomas Gubler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not filter/hide line in linechartwidget when checkbox of the line is checked
parent
879e1f6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+10
-7
LinechartWidget.h
src/ui/linechart/LinechartWidget.h
+1
-1
No files found.
src/ui/linechart/LinechartWidget.cc
View file @
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
)
...
...
src/ui/linechart/LinechartWidget.h
View file @
d2e513c5
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment