Changeset 5230 in ntrip for trunk/BNC/src/map/bncmapwin.cpp


Ignore:
Timestamp:
Jun 16, 2013, 4:35:38 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5229 r5230  
    115115  _currLat = lat;
    116116  _currLon = lon;
     117
     118  int    latDeg, latMin;
     119  double latSec;
     120  deg2DMS(lat, latDeg, latMin, latSec);
     121
     122  int    lonDeg, lonMin;
     123  double lonSec;
     124  deg2DMS(lon, lonDeg, lonMin, lonSec);
     125
     126  QString lblStr=QString("Latitude: %1 %2 %3    Longitude: %4 %5 %6")
     127                         .arg(latDeg).arg(latMin).arg(latSec,0,'f',2)
     128                         .arg(lonDeg).arg(lonMin).arg(lonSec,0,'f',2);
     129  _statusLabel->setText(lblStr);
     130
    117131  QString location = QString("%1, %2").arg(_currLat,0,'f',8).arg(_currLon,0,'f',8);
    118   _statusLabel->setText(location);
    119132  _webView->page()->mainFrame()->evaluateJavaScript(QString("gotoLocation( %1 )").arg(location));
    120133}
Note: See TracChangeset for help on using the changeset viewer.