Skip to content

Commit

Permalink
Slightly better action tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 4, 2022
1 parent 41588ca commit fb438d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/gps/qgsgpstoolbar.cpp
Expand Up @@ -84,12 +84,12 @@ QgsGpsToolBar::QgsGpsToolBar( QgsAppGpsConnection *connection, QgsMapCanvas *can
connect( mAddTrackPointAction, &QAction::triggered, this, &QgsGpsToolBar::addVertexClicked );
addAction( mAddTrackPointAction );

mAddFeatureAction = new QAction( tr( "Create Feature" ), this );
mAddFeatureAction = new QAction( tr( "Create Feature from Track" ), this );
mAddFeatureAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mActionCaptureLine.svg" ) ) );
connect( mAddFeatureAction, &QAction::triggered, this, &QgsGpsToolBar::addFeatureClicked );
addAction( mAddFeatureAction );

mResetFeatureAction = new QAction( tr( "Reset Feature" ), this );
mResetFeatureAction = new QAction( tr( "Reset Track" ), this );
mResetFeatureAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/gpsicons/mActionReset.svg" ) ) );
connect( mResetFeatureAction, &QAction::triggered, this, &QgsGpsToolBar::resetFeatureClicked );
addAction( mResetFeatureAction );
Expand Down Expand Up @@ -218,17 +218,17 @@ void QgsGpsToolBar::updateCloseFeatureButton( QgsMapLayer *lyr )
switch ( layerGeometryType )
{
case QgsWkbTypes::PointGeometry:
buttonLabel = tr( "Create Point Feature" );
buttonLabel = tr( "Create Point Feature at Location" );
icon = QStringLiteral( "mActionCapturePoint.svg" );
break;

case QgsWkbTypes::LineGeometry:
buttonLabel = tr( "Create Line Feature" );
buttonLabel = tr( "Create Line Feature from Track" );
icon = QStringLiteral( "mActionCaptureLine.svg" );
break;

case QgsWkbTypes::PolygonGeometry:
buttonLabel = tr( "Create Polygon Feature" );
buttonLabel = tr( "Create Polygon Feature from Track" );
icon = QStringLiteral( "mActionCapturePolygon.svg" );
break;

Expand Down

0 comments on commit fb438d8

Please sign in to comment.