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


Ignore:
Timestamp:
Jan 18, 2018, 11:34:35 AM (6 years ago)
Author:
stuerze
Message:

see #105: adaptations to allow for QtWebkit or QtWebEngine according to it's availability

File:
1 edited

Legend:

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

    r6446 r8260  
    3535 * Created:    08-Jun-2013
    3636 *
    37  * Changes:   
     37 * Changes:
    3838 *
    3939 * -----------------------------------------------------------------------*/
     
    5656  _currLon =  8.66496871; // BKG longitude
    5757
     58#ifdef QT_WEBENGINE
     59  _webView = new QWebEngineView(this);
     60#else
    5861  _webView = new QWebView(this);
     62#endif
     63
    5964  connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotInitMap(bool)));
    6065
     
    7580  loadHtmlPage();
    7681
    77   _webView->show(); 
     82  _webView->show();
    7883
    7984  _statusLabel = new QLabel;
     
    99104}
    100105
    101 // 
     106//
    102107////////////////////////////////////////////////////////////////////////////
    103108void bncMapWin::loadHtmlPage() {
     
    123128}
    124129
    125 // 
     130//
    126131////////////////////////////////////////////////////////////////////////////
    127132void bncMapWin::slotInitMap(bool isOk) {
     
    139144}
    140145
    141 // 
     146//
    142147////////////////////////////////////////////////////////////////////////////
    143148void bncMapWin::gotoLocation(double lat, double lon) {
     
    166171}
    167172
    168 // 
     173//
    169174////////////////////////////////////////////////////////////////////////////
    170175void bncMapWin::slotNewPosition(QByteArray staID, bncTime /* time */, QVector<double> xx) {
Note: See TracChangeset for help on using the changeset viewer.