Changeset 4665 in ntrip
- Timestamp:
- Sep 8, 2012, 5:47:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/eleplot.cpp
r4664 r4665 42 42 #include <qwt_text.h> 43 43 #include <qwt_legend.h> 44 #include <qwt_plot_marker.h> 44 45 45 46 #include "eleplot.h" … … 118 119 curve->setSamples(xData, yData); 119 120 curve->attach(this); 121 122 if (xData.size() > 0 && yData.size() > 0) { 123 QwtPlotMarker* marker = new QwtPlotMarker(); 124 int ii = xData.size() / 2; 125 marker->setValue(xData[ii], yData[ii]); 126 QwtText text(name); 127 text.setColor(symbol.pen().color()); 128 marker->setLabel(text); 129 marker->setLabelAlignment(Qt::AlignTop); 130 marker->attach(this); 131 } 132 120 133 return curve; 121 134 }
Note:
See TracChangeset
for help on using the changeset viewer.