Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
gui
i0mapmon
Commits
e678d76a
Commit
e678d76a
authored
Mar 24, 2021
by
Giacomo Strangolino
Browse files
changed QwtSymbol: filled ellipse rect and tri first, then star diamond and cross: issue 7 point 4
parent
90a73c7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/i0mmonplot.cpp
View file @
e678d76a
...
...
@@ -19,8 +19,10 @@
I0MMonPlot
::
I0MMonPlot
(
QWidget
*
parent
,
CumbiaPool
*
cup
,
const
CuControlsFactoryPool
&
fpoo
)
:
QuPlotBase
(
parent
),
m_symstyles
(
QList
<
QwtSymbol
::
Style
>
()
<<
QwtSymbol
::
XCross
<<
QwtSymbol
::
Cross
<<
QwtSymbol
::
Rect
<<
QwtSymbol
::
Triangle
<<
QwtSymbol
::
Star1
<<
QwtSymbol
::
Diamond
<<
QwtSymbol
::
Ellipse
)
{
m_symstyles
(
QList
<
QwtSymbol
::
Style
>
()
<<
QwtSymbol
::
Ellipse
<<
QwtSymbol
::
Rect
<<
QwtSymbol
::
Triangle
<<
QwtSymbol
::
Star1
<<
QwtSymbol
::
Diamond
<<
QwtSymbol
::
Cross
<<
QwtSymbol
::
XCross
)
{
m_ctrl_fpool
=
fpoo
;
m_cu_poo
=
cup
;
m_time_mode
=
m_empty
=
true
;
...
...
@@ -66,6 +68,9 @@ void I0MMonPlot::setSources(const QString &x, const QString &y, const QMap<int,
if
(
!
crv
)
{
crv
=
new
QuPlotCurve
(
cuna
);
addCurve
(
cuna
,
crv
);
QPen
p
=
crv
->
pen
();
p
.
setWidthF
(
2.5
);
crv
->
setPen
(
p
);
}
m_curvesymap
[
cuna
]
=
m_symstyles
[
m_curvesymap
.
size
()
%
m_symstyles
.
size
()];
}
...
...
@@ -231,8 +236,10 @@ void I0MMonPlot::m_curves_style() {
#if CUMBIA_QTCONTROLS_VERSION > 0x010202
c
->
setMaxDataSizeForSymbol
(
0
);
// disable first points symbol
#endif
if
(
!
c
->
symbol
()
||
c
->
symbol
()
->
style
()
!=
m_curvesymap
[
cn
])
c
->
setSymbol
(
new
QwtSymbol
(
m_curvesymap
[
cn
],
c
->
brush
(),
c
->
pen
(),
QSize
(
6
,
6
)));
if
(
!
c
->
symbol
()
||
c
->
symbol
()
->
style
()
!=
m_curvesymap
[
cn
])
{
QBrush
bru
(
c
->
pen
().
color
());
// fill symbol
c
->
setSymbol
(
new
QwtSymbol
(
m_curvesymap
[
cn
],
bru
,
c
->
pen
(),
QSize
(
10
,
10
)));
}
}
}
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