48
48
#include < qwt_plot.h>
49
49
#include < qwt_plot_grid.h>
50
50
51
- #if ( WITH_QWTPOLAR)
51
+ #ifdef WITH_QWTPOLAR
52
52
// QWT Polar plot add on
53
53
#include < qwt_symbol.h>
54
54
#include < qwt_polar_grid.h>
@@ -79,7 +79,7 @@ QgsGPSInformationWidget::QgsGPSInformationWidget( QgsMapCanvas * thepCanvas, QWi
79
79
mpRubberBand = nullptr ;
80
80
populateDevices ();
81
81
QWidget * mpHistogramWidget = mStackedWidget ->widget ( 1 );
82
- #if (! WITH_QWTPOLAR)
82
+ #ifndef WITH_QWTPOLAR
83
83
mBtnSatellites ->setVisible ( false );
84
84
#endif
85
85
//
@@ -115,7 +115,7 @@ QgsGPSInformationWidget::QgsGPSInformationWidget( QgsMapCanvas * thepCanvas, QWi
115
115
//
116
116
// Set up the polar graph for satellite pos
117
117
//
118
- #if ( WITH_QWTPOLAR)
118
+ #ifdef WITH_QWTPOLAR
119
119
QWidget * mpPolarWidget = mStackedWidget ->widget ( 2 );
120
120
mpSatellitesWidget = new QwtPolarPlot ( /* QwtText( tr( "Satellite View" ), QwtText::PlainText ),*/ mpPolarWidget ); // possible title for graph removed for now as it is too large in small windows
121
121
mpSatellitesWidget->setAutoReplot ( false ); // plot on demand (after all data has been handled)
@@ -256,7 +256,7 @@ QgsGPSInformationWidget::~QgsGPSInformationWidget()
256
256
delete mpMapMarker;
257
257
delete mpRubberBand;
258
258
259
- #if ( WITH_QWTPOLAR)
259
+ #ifdef WITH_QWTPOLAR
260
260
delete mpSatellitesGrid;
261
261
#endif
262
262
@@ -541,7 +541,7 @@ void QgsGPSInformationWidget::displayGPSInformation( const QgsGPSInformation& in
541
541
{
542
542
mpPlot->setAxisScale ( QwtPlot::xBottom, 0 , info.satellitesInView .size () );
543
543
} // signal
544
- #if ( WITH_QWTPOLAR)
544
+ #ifdef WITH_QWTPOLAR
545
545
if ( mStackedWidget ->currentIndex () == 2 && info.satInfoComplete ) // satellites
546
546
{
547
547
while ( !mMarkerList .isEmpty () )
@@ -589,7 +589,7 @@ void QgsGPSInformationWidget::displayGPSInformation( const QgsGPSInformation& in
589
589
// Add a marker to the polar plot
590
590
if ( currentInfo.id > 0 ) // don't show satellite if id=0 (no satellite indication)
591
591
{
592
- #if ( WITH_QWTPOLAR)
592
+ #ifdef WITH_QWTPOLAR
593
593
QwtPolarMarker *mypMarker = new QwtPolarMarker ();
594
594
#if (QWT_POLAR_VERSION<0x010000)
595
595
mypMarker->setPosition ( QwtPolarPoint ( currentInfo.azimuth , currentInfo.elevation ) );
@@ -605,7 +605,7 @@ void QgsGPSInformationWidget::displayGPSInformation( const QgsGPSInformation& in
605
605
{
606
606
myColor = Qt::black; // strong signal
607
607
}
608
- #if ( WITH_QWTPOLAR)
608
+ #ifdef WITH_QWTPOLAR
609
609
#if (QWT_POLAR_VERSION<0x010000)
610
610
mypMarker->setSymbol ( QwtSymbol ( QwtSymbol::Ellipse,
611
611
symbolBrush, QPen ( myColor ), markerSize ) );
@@ -635,7 +635,7 @@ void QgsGPSInformationWidget::displayGPSInformation( const QgsGPSInformation& in
635
635
#endif
636
636
mpPlot->replot ();
637
637
} // signal
638
- #if ( WITH_QWTPOLAR)
638
+ #ifdef WITH_QWTPOLAR
639
639
if ( mStackedWidget ->currentIndex () == 2 && info.satInfoComplete ) // satellites
640
640
{
641
641
mpSatellitesWidget->replot ();
0 commit comments