Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
ee32097e
Commit
ee32097e
authored
Oct 25, 2013
by
Thomas Gubler
Browse files
LinechartWidget: fix removal of curves
parent
52d4181c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/linechart/LinechartWidget.cc
View file @
ee32097e
...
...
@@ -673,9 +673,19 @@ void LinechartWidget::removeCurve(QString curve)
widget
=
curveVariances
->
take
(
curve
);
curvesWidgetLayout
->
removeWidget
(
widget
);
widget
->
deleteLater
();
// widget = colorIcons->take(curve);
// curvesWidgetLayout->removeWidget(colorIcons->take(curve));
widget
=
colorIcons
.
take
(
curve
);
curvesWidgetLayout
->
removeWidget
(
widget
);
widget
->
deleteLater
();
widget
=
curveNameLabels
.
take
(
curve
);
curvesWidgetLayout
->
removeWidget
(
widget
);
widget
->
deleteLater
();
widget
=
curveUnits
.
take
(
curve
);
curvesWidgetLayout
->
removeWidget
(
widget
);
widget
->
deleteLater
();
QCheckBox
*
checkbox
;
checkbox
=
checkBoxes
.
take
(
curve
);
curvesWidgetLayout
->
removeWidget
(
checkbox
);
checkbox
->
deleteLater
();
// intData->remove(curve);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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