Skip to content

Commit

Permalink
Better names
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 31, 2021
1 parent 4cc17b7 commit 1fe7a8c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/app/options/qgsgpsdeviceoptions.cpp
Expand Up @@ -50,20 +50,26 @@ QgsGpsDeviceOptionsWidget::QgsGpsDeviceOptionsWidget( QWidget *parent )
if ( !it.value() )
continue;

const QString wptDownload =
const QString waypointDownloadCommand =
it.value()->importCommand( QStringLiteral( "%babel" ), Qgis::GpsFeatureType::Waypoint, QStringLiteral( "%in" ), QStringLiteral( "%out" ) ).join( QLatin1Char( ' ' ) );
const QString wptUpload =
const QString waypointUploadCommand =
it.value()->exportCommand( QStringLiteral( "%babel" ), Qgis::GpsFeatureType::Waypoint, QStringLiteral( "%in" ), QStringLiteral( "%out" ) ).join( QLatin1Char( ' ' ) );
const QString rteDownload =
const QString routeDownloadCommand =
it.value()->importCommand( QStringLiteral( "%babel" ), Qgis::GpsFeatureType::Route, QStringLiteral( "%in" ), QStringLiteral( "%out" ) ).join( QLatin1Char( ' ' ) );
const QString rteUpload =
const QString routeUploadCommand =
it.value()->exportCommand( QStringLiteral( "%babel" ), Qgis::GpsFeatureType::Route, QStringLiteral( "%in" ), QStringLiteral( "%out" ) ).join( QLatin1Char( ' ' ) );
const QString trkDownload =
const QString trackDownloadCommand =
it.value()->importCommand( QStringLiteral( "%babel" ), Qgis::GpsFeatureType::Track, QStringLiteral( "%in" ), QStringLiteral( "%out" ) ).join( QLatin1Char( ' ' ) );
const QString trkUpload =
const QString trackUploadCommand =
it.value()->exportCommand( QStringLiteral( "%babel" ), Qgis::GpsFeatureType::Track, QStringLiteral( "%in" ), QStringLiteral( "%out" ) ).join( QLatin1Char( ' ' ) );

mDevices.insert( it.key(), {wptDownload, wptUpload, rteDownload, rteUpload, trkDownload, trkUpload } );
mDevices.insert( it.key(), {waypointDownloadCommand,
waypointUploadCommand,
routeDownloadCommand,
routeUploadCommand,
trackDownloadCommand,
trackUploadCommand
} );
}

updateDeviceList();
Expand Down

0 comments on commit 1fe7a8c

Please sign in to comment.