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
d06c98ed
Commit
d06c98ed
authored
Dec 04, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused selectSystem slot
parent
109d6f4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
32 deletions
+1
-32
Linecharts.cc
src/ui/linechart/Linecharts.cc
+1
-30
Linecharts.h
src/ui/linechart/Linecharts.h
+0
-2
No files found.
src/ui/linechart/Linecharts.cc
View file @
d06c98ed
...
@@ -18,10 +18,7 @@ Linecharts::Linecharts(QWidget *parent) :
...
@@ -18,10 +18,7 @@ Linecharts::Linecharts(QWidget *parent) :
foreach
(
UASInterface
*
sys
,
systems
)
{
foreach
(
UASInterface
*
sys
,
systems
)
{
addSystem
(
sys
);
addSystem
(
sys
);
}
}
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASCreated
(
UASInterface
*
)),
connect
(
UASManager
::
instance
(),
&
UASManager
::
UASCreated
,
this
,
&
Linecharts
::
addSystem
);
this
,
SLOT
(
addSystem
(
UASInterface
*
)));
connect
(
UASManager
::
instance
(),
SIGNAL
(
activeUASSet
(
int
)),
this
,
SLOT
(
selectSystem
(
int
)));
}
}
void
Linecharts
::
showEvent
(
QShowEvent
*
event
)
void
Linecharts
::
showEvent
(
QShowEvent
*
event
)
...
@@ -59,32 +56,6 @@ void Linecharts::hideEvent(QHideEvent* event)
...
@@ -59,32 +56,6 @@ void Linecharts::hideEvent(QHideEvent* event)
emit
visibilityChanged
(
false
);
emit
visibilityChanged
(
false
);
}
}
void
Linecharts
::
selectSystem
(
int
systemid
)
{
Q_UNUSED
(
systemid
);
// QWidget* prevWidget = currentWidget();
// if (prevWidget)
// {
// LinechartWidget* chart = dynamic_cast<LinechartWidget*>(prevWidget);
// if (chart)
// {
// chart->setActive(false);
// chart->setActiveSystem(systemid);
// }
// }
// QWidget* widget = plots.value(systemid, NULL);
// if (widget)
// {
// setCurrentWidget(widget);
// LinechartWidget* chart = dynamic_cast<LinechartWidget*>(widget);
// if (chart)
// {
// chart->setActive(true);
// chart->setActiveSystem(systemid);
// }
// }
}
void
Linecharts
::
addSystem
(
UASInterface
*
uas
)
void
Linecharts
::
addSystem
(
UASInterface
*
uas
)
{
{
// FIXME Add removeSystem() call
// FIXME Add removeSystem() call
...
...
src/ui/linechart/Linecharts.h
View file @
d06c98ed
...
@@ -20,8 +20,6 @@ signals:
...
@@ -20,8 +20,6 @@ signals:
void
visibilityChanged
(
bool
visible
);
void
visibilityChanged
(
bool
visible
);
public
slots
:
public
slots
:
/** @brief Select plot for one system */
void
selectSystem
(
int
systemid
);
/** @brief Add a new system to the list of plots */
/** @brief Add a new system to the list of plots */
void
addSystem
(
UASInterface
*
uas
);
void
addSystem
(
UASInterface
*
uas
);
/** @brief Add a new generic message source (not a system) */
/** @brief Add a new generic message source (not a system) */
...
...
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