Changeset 269 in flair-src for trunk/tools/FlairGCS/src/DataPlot1D.cpp
- Timestamp:
- Oct 4, 2018, 1:53:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/DataPlot1D.cpp
r244 r269 24 24 } 25 25 26 void DataPlot1D::XmlEvent(QDomElement dom) {27 if (dom .attribute("curve") != "") {28 QString type = dom .attribute("type");29 int r = dom .attribute("r").toInt();30 int g = dom .attribute("g").toInt();31 int b = dom .attribute("b").toInt();32 QString name = dom .attribute("curve");26 void DataPlot1D::XmlEvent(QDomElement *dom) { 27 if (dom->attribute("curve") != "") { 28 QString type = dom->attribute("type"); 29 int r = dom->attribute("r").toInt(); 30 int g = dom->attribute("g").toInt(); 31 int b = dom->attribute("b").toInt(); 32 QString name = dom->attribute("curve"); 33 33 addCurve(QPen(QColor(r, g, b, 255)), name); 34 34 datas_type.append(type);
Note:
See TracChangeset
for help on using the changeset viewer.