@@ -958,12 +958,13 @@ void QgisApp::createActions()
958
958
connect ( mActionRemoveLayer , SIGNAL ( triggered () ), this , SLOT ( removeLayer () ) );
959
959
mActionRemoveLayer ->setEnabled ( false );
960
960
961
+ #ifdef HAVE_QWT
961
962
mActionGpsTool = new QAction ( getThemeIcon ( " mActionGpsTool.png" ), tr ( " Live GPS tracking" ), this );
962
963
shortcuts->registerAction ( mActionGpsTool , tr ( " " , " Live GPS tracking" ) );
963
964
mActionGpsTool ->setStatusTip ( tr ( " Show GPS tool" ) );
964
965
connect ( mActionGpsTool , SIGNAL ( triggered () ), this , SLOT ( showGpsTool () ) );
965
966
mActionGpsTool ->setEnabled ( true );
966
-
967
+ # endif
967
968
968
969
mActionLayerProperties = new QAction ( tr ( " Properties..." ), this );
969
970
shortcuts->registerAction ( mActionLayerProperties );
@@ -1322,7 +1323,9 @@ void QgisApp::createMenus()
1322
1323
mViewMenu ->addMenu ( mToolbarMenu );
1323
1324
mViewMenu ->addAction ( mActionToggleFullScreen );
1324
1325
}
1326
+ #ifdef HAVE_QWT
1325
1327
mViewMenu ->addAction ( mActionGpsTool );
1328
+ #endif
1326
1329
1327
1330
// Layers Menu
1328
1331
@@ -2157,9 +2160,9 @@ void QgisApp::about()
2157
2160
.arg ( QGis::QGIS_VERSION )
2158
2161
.arg ( QGis::QGIS_SVN_VERSION );
2159
2162
#ifdef HAVE_POSTGRESQL
2160
- versionString += tr ( " This copy of QGIS has been built with PostgreSQL support." );
2163
+ versionString += tr ( " \n This copy of QGIS has been built with PostgreSQL support." );
2161
2164
#else
2162
- versionString += tr ( " This copy of QGIS has been built without PostgreSQL support." );
2165
+ versionString += tr ( " \n This copy of QGIS has been built without PostgreSQL support." );
2163
2166
#endif
2164
2167
2165
2168
#ifdef HAVE_SPATIALITE
@@ -2168,16 +2171,21 @@ void QgisApp::about()
2168
2171
versionString += tr ( " \n This copy of QGIS has been built without SpatiaLite support." );
2169
2172
#endif
2170
2173
2174
+ #ifdef HAVE_QWT
2175
+ versionString += tr ( " \n This copy of QGIS has been built with QWT support (%1)." ).arg ( QWT_VERSION_STR );
2176
+ #else
2177
+ versionString += tr ( " \n This copy of QGIS has been built without QWT support." );
2178
+ #endif
2179
+
2180
+ #ifdef QGISDEBUG
2181
+ versionString += tr ( " \n This copy of QGIS writes debugging output." );
2182
+ #endif
2183
+
2171
2184
versionString += tr ( " \n This binary was compiled against Qt %1,"
2172
2185
" and is currently running against Qt %2" )
2173
2186
.arg ( QT_VERSION_STR )
2174
2187
.arg ( qVersion () );
2175
2188
2176
- #ifdef WIN32
2177
- // special version stuff for windows (if required)
2178
- // versionString += "\nThis is a Windows preview release - not for production use";
2179
- #endif
2180
-
2181
2189
abt->setVersion ( versionString );
2182
2190
QString whatsNew = " <html><body>" ;
2183
2191
whatsNew += " <h2>" + tr ( " Version" ) + " " + QString ( QGis::QGIS_VERSION ) + " </h2>" ;
0 commit comments