Changeset 4629 in ntrip
- Timestamp:
- Sep 1, 2012, 2:48:11 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncmap_svg.cpp
r4628 r4629 6 6 #include <qwt_plot_curve.h> 7 7 #include <qwt_plot_marker.h> 8 #include <qwt_plot_grid.h>9 #include <qwt_plot_layout.h>10 8 #include <qwt_plot_canvas.h> 11 9 #include <qwt_plot_panner.h> 12 10 #include <qwt_plot_magnifier.h> 11 #include <qwt_symbol.h> 13 12 14 13 #include "bncmap.h" … … 44 43 ///////////////////////////////////////////////////////////////////////////// 45 44 void t_bncMap::slotNewPoint(const QString& name, double latDeg, double lonDeg) { 45 QColor red(220,20,60); 46 QwtSymbol* symbol = new QwtSymbol(QwtSymbol::Rect, QBrush(red), 47 QPen(red), QSize(2,2)); 46 48 QwtPlotMarker* marker = new QwtPlotMarker(); 47 49 marker->setValue(lonDeg, latDeg); 50 marker->setLabelAlignment(Qt::AlignRight); 48 51 marker->setLabel(QwtText(name.left(4))); 52 marker->setSymbol(symbol); 49 53 marker->attach(_mapPlot); 50 54 }
Note:
See TracChangeset
for help on using the changeset viewer.