@@ -188,7 +188,7 @@ QgsGpsInformationWidget::QgsGpsInformationWidget( QgsMapCanvas *thepCanvas, QWid
188
188
mpPlot->replot ();
189
189
190
190
mBtnTrackColor ->setAllowOpacity ( true );
191
- mBtnTrackColor ->setColorDialogTitle ( tr (" Track Color" ) );
191
+ mBtnTrackColor ->setColorDialogTitle ( tr ( " Track Color" ) );
192
192
// Restore state
193
193
QgsSettings mySettings;
194
194
mGroupShowMarker ->setChecked ( mySettings.value ( QStringLiteral ( " gps/showMarker" ), " true" ).toBool () );
@@ -370,7 +370,7 @@ void QgsGpsInformationWidget::mSpinTrackWidth_valueChanged( int value )
370
370
}
371
371
}
372
372
373
- void QgsGpsInformationWidget::trackColorChanged ( const QColor& color )
373
+ void QgsGpsInformationWidget::trackColorChanged ( const QColor & color )
374
374
{
375
375
if ( color.isValid () ) // check that a color was picked
376
376
{
@@ -717,7 +717,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
717
717
{
718
718
mTxtDateTime ->setText ( info.utcDateTime .toString ( mDateTimeFormat ) ); // user specified format string for testing the millisecond part of time
719
719
}
720
- if ( std::isfinite ( info.speed ))
720
+ if ( std::isfinite ( info.speed ) )
721
721
{
722
722
mTxtSpeed ->setEnabled ( true );
723
723
mTxtSpeed ->setText ( tr ( " %1 km/h" ).arg ( info.speed , 0 , ' f' , 1 ) );
@@ -727,7 +727,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
727
727
mTxtSpeed ->setEnabled ( false );
728
728
mTxtSpeed ->setText ( tr ( " Not available" ) );
729
729
}
730
- if ( std::isfinite ( info.direction ))
730
+ if ( std::isfinite ( info.direction ) )
731
731
{
732
732
mTxtDirection ->setEnabled ( true );
733
733
mTxtDirection ->setText ( QString::number ( info.direction , ' f' , 1 ) + QStringLiteral ( " °" ) );
@@ -740,7 +740,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
740
740
mTxtHdop ->setText ( QString::number ( info.hdop , ' f' , 1 ) );
741
741
mTxtVdop ->setText ( QString::number ( info.vdop , ' f' , 1 ) );
742
742
mTxtPdop ->setText ( QString::number ( info.pdop , ' f' , 1 ) );
743
- if ( std::isfinite ( info.hacc ))
743
+ if ( std::isfinite ( info.hacc ) )
744
744
{
745
745
mTxtHacc ->setEnabled ( true );
746
746
mTxtHacc ->setText ( QString::number ( info.hacc , ' f' , 1 ) + " m" );
@@ -750,7 +750,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
750
750
mTxtHacc ->setEnabled ( false );
751
751
mTxtHacc ->setText ( tr ( " Not available" ) );
752
752
}
753
- if ( std::isfinite ( info.vacc ))
753
+ if ( std::isfinite ( info.vacc ) )
754
754
{
755
755
mTxtVacc ->setEnabled ( true );
756
756
mTxtVacc ->setText ( QString::number ( info.vacc , ' f' , 1 ) + " m" );
0 commit comments