Changeset f62b00 for src/UIElements/Views/Qt4/QtHomologyList.cpp
- Timestamp:
- Sep 2, 2016, 8:34:21 AM (8 years ago)
- Branches:
- Gui_Fixes
- Parents:
- 2eeb21
- git-author:
- Frederik Heber <heber@…> (09/02/16 08:34:18)
- git-committer:
- Frederik Heber <heber@…> (09/02/16 08:34:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtHomologyList.cpp
r2eeb21 rf62b00 266 266 } 267 267 268 QSeisData data(xvalues, yvalues, QString(potentialname.c_str())); 269 // couple to QSeisPlotCurve and register the curve 270 QSeisPlotCurve *curve = new QSeisPlotCurve(QString(potentialname.c_str()), "energy"); 271 curve->updateCurve(&data); 272 if (!QSeisCurveRegistry::getInstance().isPresentByName(curve->getName())) 273 QSeisCurveRegistry::getInstance().registerInstance(curve); 274 else 275 delete curve; 276 // couple to QSeisPlotPage 277 widget->addCurve(potentialname); 278 268 if ((!xvalues.empty()) && (!yvalues.empty())) { 269 QSeisData data(xvalues, yvalues, QString(potentialname.c_str())); 270 // couple to QSeisPlotCurve and register the curve 271 QSeisPlotCurve *curve = new QSeisPlotCurve(QString(potentialname.c_str()), "energy"); 272 curve->updateCurve(&data); 273 if (!QSeisCurveRegistry::getInstance().isPresentByName(curve->getName())) 274 QSeisCurveRegistry::getInstance().registerInstance(curve); 275 else 276 delete curve; 277 // couple to QSeisPlotPage 278 widget->addCurve(potentialname); 279 } 279 280 } 280 281 }
Note:
See TracChangeset
for help on using the changeset viewer.