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
481edea8
Commit
481edea8
authored
Jun 10, 2013
by
Bryant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed slot in ChartPlot to match connect() calls elsewhere.
parent
6a0c4b8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ChartPlot.cc
src/ui/linechart/ChartPlot.cc
+2
-2
ChartPlot.h
src/ui/linechart/ChartPlot.h
+1
-1
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+2
-2
No files found.
src/ui/linechart/ChartPlot.cc
View file @
481edea8
...
...
@@ -53,7 +53,7 @@ ChartPlot::ChartPlot(QWidget *parent):
}
// Now that all objects have been initialized, color everything.
applyColorScheme
(
MainWindow
::
instance
()
->
getStyle
());
styleChanged
(
MainWindow
::
instance
()
->
getStyle
());
}
ChartPlot
::~
ChartPlot
()
...
...
@@ -87,7 +87,7 @@ void ChartPlot::shuffleColors()
}
}
void
ChartPlot
::
applyColorScheme
(
MainWindow
::
QGC_MAINWINDOW_STYLE
style
)
void
ChartPlot
::
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
style
)
{
// Generate a new color list for curves and recolor them.
for
(
int
i
=
0
;
i
<
numColors
;
++
i
)
...
...
src/ui/linechart/ChartPlot.h
View file @
481edea8
...
...
@@ -25,7 +25,7 @@ public:
public
slots
:
/** @brief Generate coloring for this plot canvas based on current window theme */
void
applyColorScheme
(
MainWindow
::
QGC_MAINWINDOW_STYLE
style
);
void
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
style
);
protected:
const
static
int
numColors
=
20
;
...
...
src/ui/linechart/LinechartWidget.cc
View file @
481edea8
...
...
@@ -144,7 +144,7 @@ LinechartWidget::LinechartWidget(int systemid, QWidget *parent) : QWidget(parent
// And make sure we're listening for future style changes
connect
(
MainWindow
::
instance
(),
SIGNAL
(
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
)),
this
,
SLOT
(
applyColorScheme
(
MainWindow
::
QGC_MAINWINDOW_STYLE
)));
this
,
SLOT
(
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
)));
connect
(
MainWindow
::
instance
(),
SIGNAL
(
styleChanged
()),
this
,
SLOT
(
recolor
()));
updateTimer
->
setInterval
(
updateInterval
);
...
...
@@ -777,7 +777,7 @@ void LinechartWidget::removeCurve(QString curve)
void
LinechartWidget
::
recolor
()
{
activePlot
->
applyColorScheme
(
MainWindow
::
instance
()
->
getStyle
());
activePlot
->
styleChanged
(
MainWindow
::
instance
()
->
getStyle
());
foreach
(
QString
key
,
colorIcons
.
keys
())
{
QWidget
*
colorIcon
=
colorIcons
.
value
(
key
,
0
);
...
...
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