diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-17 23:44:31 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-17 23:44:31 +0100 |
commit | 75f0be9bc6fec3120047a9f50004922e658c3afc (patch) | |
tree | 3248f38225772b272f64c0b7d124e4e7aefb9574 | |
parent | 1b75342fdec4f58aecb35869588a247e9ddc066a (diff) |
BarChart: commented out some unused code.
-rw-r--r-- | barchart.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/barchart.cpp b/barchart.cpp index ad20c63..ad31fb9 100644 --- a/barchart.cpp +++ b/barchart.cpp @@ -58,16 +58,16 @@ QSGNode *BarChart::newBarNode() const // A bar node is: // opacityNode [outlineGeomNode barGeomNode] - QSGGeometryNode *outlineGeomNode = new QSGGeometryNode; - QSGGeometry *outlineGeometry = - new QSGGeometry(QSGGeometry::defaultAttributes_Point2D(), 4); - outlineGeometry->setDrawingMode(GL_LINE_LOOP); - outlineGeomNode->setGeometry(outlineGeometry); - outlineGeomNode->setFlag(QSGNode::OwnsGeometry); - QSGFlatColorMaterial *material = new QSGFlatColorMaterial; - material->setColor(OUTLINE_COLOR); - outlineGeomNode->setMaterial(material); - outlineGeomNode->setFlag(QSGNode::OwnsMaterial); + //QSGGeometryNode *outlineGeomNode = new QSGGeometryNode; + //QSGGeometry *outlineGeometry = + // new QSGGeometry(QSGGeometry::defaultAttributes_Point2D(), 4); + //outlineGeometry->setDrawingMode(GL_LINE_LOOP); + //outlineGeomNode->setGeometry(outlineGeometry); + //outlineGeomNode->setFlag(QSGNode::OwnsGeometry); + //QSGFlatColorMaterial *material = new QSGFlatColorMaterial; + //material->setColor(OUTLINE_COLOR); + //outlineGeomNode->setMaterial(material); + //outlineGeomNode->setFlag(QSGNode::OwnsMaterial); QSGGeometryNode *barGeomNode = new QSGGeometryNode; QSGGeometry *barGeometry = @@ -75,7 +75,7 @@ QSGNode *BarChart::newBarNode() const barGeometry->setDrawingMode(GL_POLYGON); barGeomNode->setGeometry(barGeometry); barGeomNode->setFlag(QSGNode::OwnsGeometry); - material = new QSGFlatColorMaterial; + QSGFlatColorMaterial *material = new QSGFlatColorMaterial; material->setColor(BAR_COLOR); barGeomNode->setMaterial(material); barGeomNode->setFlag(QSGNode::OwnsMaterial); |