Changeset 5305 in ntrip


Ignore:
Timestamp:
Jun 29, 2013, 9:59:42 PM (9 years ago)
Author:
weber
Message:

Track plot details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/map/bncmapwin.cpp

    r5296 r5305  
    126126  }
    127127  bncSettings settings;
    128 //int useTrace = (Qt::CheckState(settings.value("mapWinTrace").toInt()) == Qt::Checked) ? 1 : 0;
    129128  int mapWinDotSize = settings.value("mapWinDotSize").toInt();
    130 //QString location = QString("%1, %2, %3").arg(_currLat,0,'f',8).arg(_currLon,0,'f',8).arg(useTrace);
    131   QString location = QString("%1, %2, %3").arg(_currLat,0,'f',8).arg(_currLon,0,'f',8).arg(mapWinDotSize);
     129  int mapWinDotColor = 1;
     130  if (settings.value("mapWinDotColor").toString() == "yellow") {
     131    mapWinDotColor = 2;
     132  }
     133  QString location = QString("%1, %2, %3, %4").arg(_currLat,0,'f',8).arg(_currLon,0,'f',8).arg(mapWinDotSize).arg(mapWinDotColor);
    132134  _webView->page()->mainFrame()->evaluateJavaScript(QString("initialize( %1 )").arg(location));
    133135}
Note: See TracChangeset for help on using the changeset viewer.