mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Updated the Pf/Pv plot curve to use antialiased ellipses rather than points.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <qwt_legend.h>
|
||||
#include <qwt_plot_curve.h>
|
||||
#include <qwt_plot_marker.h>
|
||||
#include <qwt_symbol.h>
|
||||
#include <set>
|
||||
|
||||
#define PI 3.14159
|
||||
@@ -57,8 +58,15 @@ PfPvPlot::PfPvPlot()
|
||||
cpCurve->attach(this);
|
||||
|
||||
curve = new QwtPlotCurve();
|
||||
curve->setPen(QPen(Qt::red));
|
||||
QwtSymbol sym;
|
||||
sym.setStyle(QwtSymbol::Ellipse);
|
||||
sym.setSize(6);
|
||||
sym.setPen(QPen(Qt::red));
|
||||
sym.setBrush(QBrush(Qt::NoBrush));
|
||||
|
||||
curve->setSymbol(sym);
|
||||
curve->setStyle(QwtPlotCurve::Dots);
|
||||
curve->setRenderHint(QwtPlotItem::RenderAntialiased);
|
||||
curve->attach(this);
|
||||
|
||||
recalc();
|
||||
|
||||
Reference in New Issue
Block a user