- Timestamp:
- Jan 18, 2018, 11:34:35 AM (7 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/bncmapwin.cpp
r6446 r8260 35 35 * Created: 08-Jun-2013 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 56 56 _currLon = 8.66496871; // BKG longitude 57 57 58 #ifdef QT_WEBENGINE 59 _webView = new QWebEngineView(this); 60 #else 58 61 _webView = new QWebView(this); 62 #endif 63 59 64 connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotInitMap(bool))); 60 65 … … 75 80 loadHtmlPage(); 76 81 77 _webView->show(); 82 _webView->show(); 78 83 79 84 _statusLabel = new QLabel; … … 99 104 } 100 105 101 // 106 // 102 107 //////////////////////////////////////////////////////////////////////////// 103 108 void bncMapWin::loadHtmlPage() { … … 123 128 } 124 129 125 // 130 // 126 131 //////////////////////////////////////////////////////////////////////////// 127 132 void bncMapWin::slotInitMap(bool isOk) { … … 139 144 } 140 145 141 // 146 // 142 147 //////////////////////////////////////////////////////////////////////////// 143 148 void bncMapWin::gotoLocation(double lat, double lon) { … … 166 171 } 167 172 168 // 173 // 169 174 //////////////////////////////////////////////////////////////////////////// 170 175 void bncMapWin::slotNewPosition(QByteArray staID, bncTime /* time */, QVector<double> xx) { -
trunk/BNC/src/map/bncmapwin.h
r8252 r8260 26 26 #define BNCMAPWIN_H 27 27 28 #ifdef QT_WEBENGINE 29 #include <QWebEngineView> 30 #else 31 #include <QWebView> 32 #endif 33 #include <QLabel> 34 #include <QHBoxLayout> 35 #include <QWebFrame> 28 36 #include <QByteArray> 29 37 #include <QDialog> … … 40 48 41 49 signals: 42 void mapClosed(); 50 void mapClosed(); 43 51 44 52 public slots: … … 54 62 void loadHtmlPage(); 55 63 void gotoLocation(double lat, double lon); 56 QWebView* _webView; 64 #ifdef QT_WEBENGINE 65 QWebEngineView* _webView; 66 #else 67 QWebView* _webView; 68 #endif 57 69 QLabel* _statusLabel; 58 70 double _currLat; -
trunk/BNC/src/src.pri
r8231 r8260 135 135 # Check QtWebKit Library Existence 136 136 # -------------------------------- 137 win32 { 138 exists("$$[QT_INSTALL_BINS]/QtWebKit4.dll") { 137 exists("$$[QT_INSTALL_LIBS]/*WebKit*") { 139 138 DEFINES += QT_WEBKIT 140 } 139 QT += webkitwidgets 140 message("Configured with QtWebKit") 141 141 } 142 142 143 unix{144 exists("$$[QT_INSTALL_LIBS]/libQtWebKit.so") {145 DEFINES += QT_WEBKIT146 }143 exists("$$[QT_INSTALL_LIBS]/*WebEngineWidgets*") { 144 DEFINES += QT_WEBENGINE 145 QT += webenginewidgets 146 message("Configured with QtWebEngine") 147 147 } 148 148 149 macx { 150 exists("$$[QT_INSTALL_LIBS]/QtWebKit.framework") { 151 DEFINES += QT_WEBKIT 152 } 153 } 154 155 contains(DEFINES, QT_WEBKIT) { 156 message("Configured with QtWebKit") 157 QT += webkit 149 contains(DEFINES, QT_WEBENGINE) | contains(DEFINES, QT_WEBKIT) { 158 150 HEADERS += map/bncmapwin.h 159 151 SOURCES += map/bncmapwin.cpp … … 161 153 } 162 154 else { 163 message("N o QtWebKit")155 message("Neither QtWebEngine nor QtWebKit is available") 164 156 }
Note:
See TracChangeset
for help on using the changeset viewer.