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
5c404e22
Commit
5c404e22
authored
Jun 26, 2014
by
Susurrus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #732 from Susurrus/master
Fixes to botched Qwt 6.1 update
parents
9ceef3f4
c5033632
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
QGCXYPlot.cc
src/ui/designer/QGCXYPlot.cc
+3
-3
LinechartPlot.h
src/ui/linechart/LinechartPlot.h
+4
-5
ScrollZoomer.cc
src/ui/linechart/ScrollZoomer.cc
+2
-2
No files found.
src/ui/designer/QGCXYPlot.cc
View file @
5c404e22
...
...
@@ -110,10 +110,10 @@ public:
double
yMin
()
const
{
return
ymin
;
}
double
yMax
()
const
{
return
ymax
;
}
virtual
Q
wtDoubleRect
boundingRect
()
const
{
virtual
Q
RectF
boundingRect
()
const
{
if
(
!
minMaxSet
)
return
Q
wtDoubleRect
(
1
,
1
,
-
2
,
-
2
);
return
Q
wtDoubleRect
(
xmin
,
ymin
,
xmax
-
xmin
,
ymax
-
ymin
);
return
Q
RectF
(
1
,
1
,
-
2
,
-
2
);
return
Q
RectF
(
xmin
,
ymin
,
xmax
-
xmin
,
ymax
-
ymin
);
}
/* From QwtPlotItem. Draw the complete series */
...
...
src/ui/linechart/LinechartPlot.h
View file @
5c404e22
...
...
@@ -45,7 +45,6 @@ This file is part of the PIXHAWK project
#include <qwt_scale_draw.h>
#include <qwt_scale_widget.h>
#include <qwt_scale_engine.h>
#include <qwt_compat.h>
#include <qwt_plot.h>
#include "ChartPlot.h"
#include "MG.h"
...
...
@@ -134,14 +133,14 @@ protected:
private:
quint64
count
;
Q
wtArray
<
double
>
ms
;
Q
wtArray
<
double
>
value
;
Q
Vector
<
double
>
ms
;
Q
Vector
<
double
>
value
;
double
mean
;
double
median
;
double
variance
;
unsigned
int
averageWindow
;
Q
wtArray
<
double
>
outputMs
;
Q
wtArray
<
double
>
outputValue
;
Q
Vector
<
double
>
outputMs
;
Q
Vector
<
double
>
outputValue
;
};
...
...
src/ui/linechart/ScrollZoomer.cc
View file @
5c404e22
...
...
@@ -439,9 +439,9 @@ void ScrollZoomer::layoutScrollBars(const QRect &rect)
void
ScrollZoomer
::
scrollBarMoved
(
Qt
::
Orientation
o
,
double
min
,
double
)
{
if
(
o
==
Qt
::
Horizontal
)
move
(
min
,
zoomRect
().
top
(
));
move
(
QPoint
(
min
,
zoomRect
().
top
()
));
else
move
(
zoomRect
().
left
(),
min
);
move
(
QPoint
(
zoomRect
().
left
(),
min
)
);
emit
zoomed
(
zoomRect
());
}
...
...
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