mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-24 09:31:40 +08:00
Fix warning variable is initialized but not referenced
This commit is contained in:
parent
12482b862a
commit
1b99daf7e0
@ -604,9 +604,6 @@ void JKQTPfilledVerticalRangeGraph::draw(JKQTPEnhancedPainter &painter)
|
||||
// then the whole thing is drawn
|
||||
QPolygonF poly_all, phigh, plow;
|
||||
|
||||
double xold=-1;
|
||||
|
||||
bool first=true;
|
||||
intSortData();
|
||||
for (int iii=imin; iii<imax; iii++) {
|
||||
int i=qBound(imin, getDataIndex(iii), imax);
|
||||
|
@ -30,9 +30,9 @@ TestWidgetGeometry::TestWidgetGeometry(QWidget *parent) :
|
||||
plotGeo->get_plotter()->set_axisAspectRatio(1);
|
||||
|
||||
|
||||
JKQTPgeoLine* line1=new JKQTPgeoLine(plotGeo->get_plotter(), -1, -2, 2, 1.5);
|
||||
// JKQTPgeoLine* line1=new JKQTPgeoLine(plotGeo->get_plotter(), -1, -2, 2, 1.5);
|
||||
//plotGeo->get_plotter()->addGraph(line1);
|
||||
JKQTPgeoLine* line2=new JKQTPgeoLine(plotGeo->get_plotter(), 1, -5, 4, 3, QColor("blue"), 4);
|
||||
// JKQTPgeoLine* line2=new JKQTPgeoLine(plotGeo->get_plotter(), 1, -5, 4, 3, QColor("blue"), 4);
|
||||
//plotGeo->get_plotter()->addGraph(line2);
|
||||
|
||||
JKQTPgeoRectangle* rect1=new JKQTPgeoRectangle(plotGeo->get_plotter(), 1,1,2,2, QColor("blue"),2, Qt::SolidLine, QColor("lightblue"));
|
||||
@ -55,18 +55,18 @@ TestWidgetGeometry::TestWidgetGeometry(QWidget *parent) :
|
||||
p.append(QPointF(0,-2));
|
||||
p.append(QPointF(M_PI,5.5));
|
||||
|
||||
JKQTPgeoPolygon* poly=new JKQTPgeoPolygon(plotGeo->get_plotter(), p, QColor("black"), 1.5, Qt::SolidLine, QColor(128,128,0,128));
|
||||
// JKQTPgeoPolygon* poly=new JKQTPgeoPolygon(plotGeo->get_plotter(), p, QColor("black"), 1.5, Qt::SolidLine, QColor(128,128,0,128));
|
||||
//plotGeo->get_plotter()->addGraph(poly);
|
||||
JKQTPgeoLines* lines=new JKQTPgeoLines(plotGeo->get_plotter(), p, QColor(255,255,0), 3);
|
||||
// JKQTPgeoLines* lines=new JKQTPgeoLines(plotGeo->get_plotter(), p, QColor(255,255,0), 3);
|
||||
//plotGeo->get_plotter()->addGraph(lines);
|
||||
|
||||
JKQTPgeoEllipse* ell1=new JKQTPgeoEllipse(plotGeo->get_plotter(), 0,0,2,4, QColor("black"),1.5, Qt::DotLine);
|
||||
plotGeo->get_plotter()->addGraph(ell1);
|
||||
JKQTPgeoArc* arc=new JKQTPgeoArc(plotGeo->get_plotter(), 0,0,2,4,0, 135, QColor("blue"),3, Qt::SolidLine);
|
||||
// JKQTPgeoArc* arc=new JKQTPgeoArc(plotGeo->get_plotter(), 0,0,2,4,0, 135, QColor("blue"),3, Qt::SolidLine);
|
||||
//plotGeo->get_plotter()->addGraph(arc);
|
||||
JKQTPgeoPie* pie=new JKQTPgeoPie(plotGeo->get_plotter(), 0,0,2,4,35, 98, QColor("blue"),3, Qt::SolidLine, QColor(0,0,255,127));
|
||||
// JKQTPgeoPie* pie=new JKQTPgeoPie(plotGeo->get_plotter(), 0,0,2,4,35, 98, QColor("blue"),3, Qt::SolidLine, QColor(0,0,255,127));
|
||||
//plotGeo->get_plotter()->addGraph(pie);
|
||||
JKQTPgeoChord* chord=new JKQTPgeoChord(plotGeo->get_plotter(), 0,0,2,4,35, 98, QColor("blue"),3, Qt::SolidLine, QColor(0,0,255,127));
|
||||
// JKQTPgeoChord* chord=new JKQTPgeoChord(plotGeo->get_plotter(), 0,0,2,4,35, 98, QColor("blue"),3, Qt::SolidLine, QColor(0,0,255,127));
|
||||
//plotGeo->get_plotter()->addGraph(chord);
|
||||
|
||||
JKQTPgeoInfiniteLine* iline=new JKQTPgeoInfiniteLine(plotGeo->get_plotter(), 0.5,1,1,1, QColor("blue"), 3);
|
||||
|
@ -95,7 +95,7 @@ TestWidgetGraphs::TestWidgetGraphs(QWidget *parent) :
|
||||
size_t cx2=ds->addColumn(x2, N2, "x2");
|
||||
size_t cy21=ds->addColumn(y21, N2, "y21");
|
||||
size_t cy22=ds->addColumn(y22, N2, "y22");
|
||||
size_t cy23=ds->addColumn(y23, N2, "y23");
|
||||
// size_t cy23=ds->addColumn(y23, N2, "y23");
|
||||
//size_t cy24=ds->addColumn(y24, N2, "y24");
|
||||
size_t cx2r=ds->addColumn(x2r, N2, "x2r");
|
||||
size_t cy21r=ds->addColumn(y21r, N2, "y21r");
|
||||
@ -302,7 +302,7 @@ void TestWidgetGraphs::setErrorStyle(int /*index*/)
|
||||
QComboBox* cmb=qobject_cast<QComboBox*>(sender());
|
||||
if (cmb) {
|
||||
JKQTPxyGraphErrors* exy=dynamic_cast<JKQTPxyGraphErrors*>(plteErrors);
|
||||
JKQTPxGraphErrors* ex=dynamic_cast<JKQTPxGraphErrors*>(plteErrors);
|
||||
// JKQTPxGraphErrors* ex=dynamic_cast<JKQTPxGraphErrors*>(plteErrors);
|
||||
JKQTPyGraphErrors* ey=dynamic_cast<JKQTPyGraphErrors*>(plteErrors);
|
||||
if (exy) {
|
||||
exy->set_yErrorStyle(String2JKQTPerrorPlotstyle(cmb->itemData(cmb->currentIndex()).toString()));
|
||||
|
Loading…
Reference in New Issue
Block a user