Skip to content

Commit e883993

Browse files
committed
Formatting
1 parent a012770 commit e883993

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/app/gps/qgsgpsinformationwidget.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ QgsGpsInformationWidget::QgsGpsInformationWidget( QgsMapCanvas *thepCanvas, QWid
188188
mpPlot->replot();
189189

190190
mBtnTrackColor->setAllowOpacity( true );
191-
mBtnTrackColor->setColorDialogTitle( tr("Track Color") );
191+
mBtnTrackColor->setColorDialogTitle( tr( "Track Color" ) );
192192
// Restore state
193193
QgsSettings mySettings;
194194
mGroupShowMarker->setChecked( mySettings.value( QStringLiteral( "gps/showMarker" ), "true" ).toBool() );
@@ -370,7 +370,7 @@ void QgsGpsInformationWidget::mSpinTrackWidth_valueChanged( int value )
370370
}
371371
}
372372

373-
void QgsGpsInformationWidget::trackColorChanged( const QColor& color )
373+
void QgsGpsInformationWidget::trackColorChanged( const QColor &color )
374374
{
375375
if ( color.isValid() ) // check that a color was picked
376376
{
@@ -717,7 +717,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
717717
{
718718
mTxtDateTime->setText( info.utcDateTime.toString( mDateTimeFormat ) ); //user specified format string for testing the millisecond part of time
719719
}
720-
if ( std::isfinite( info.speed ))
720+
if ( std::isfinite( info.speed ) )
721721
{
722722
mTxtSpeed->setEnabled( true );
723723
mTxtSpeed->setText( tr( "%1 km/h" ).arg( info.speed, 0, 'f', 1 ) );
@@ -727,7 +727,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
727727
mTxtSpeed->setEnabled( false );
728728
mTxtSpeed->setText( tr( "Not available" ) );
729729
}
730-
if ( std::isfinite( info.direction ))
730+
if ( std::isfinite( info.direction ) )
731731
{
732732
mTxtDirection->setEnabled( true );
733733
mTxtDirection->setText( QString::number( info.direction, 'f', 1 ) + QStringLiteral( "°" ) );
@@ -740,7 +740,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
740740
mTxtHdop->setText( QString::number( info.hdop, 'f', 1 ) );
741741
mTxtVdop->setText( QString::number( info.vdop, 'f', 1 ) );
742742
mTxtPdop->setText( QString::number( info.pdop, 'f', 1 ) );
743-
if ( std::isfinite( info.hacc ))
743+
if ( std::isfinite( info.hacc ) )
744744
{
745745
mTxtHacc->setEnabled( true );
746746
mTxtHacc->setText( QString::number( info.hacc, 'f', 1 ) + "m" );
@@ -750,7 +750,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
750750
mTxtHacc->setEnabled( false );
751751
mTxtHacc->setText( tr( "Not available" ) );
752752
}
753-
if ( std::isfinite( info.vacc ))
753+
if ( std::isfinite( info.vacc ) )
754754
{
755755
mTxtVacc->setEnabled( true );
756756
mTxtVacc->setText( QString::number( info.vacc, 'f', 1 ) + "m" );

0 commit comments

Comments
 (0)