Skip to content

Commit 5a96ae2

Browse files
committedSep 29, 2014
use identify icons in the identify menu
1 parent f571cdd commit 5a96ae2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/gui/qgsidentifymenu.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ QList<QgsMapToolIdentify::IdentifyResult> QgsIdentifyMenu::exec( const QList<Qgs
125125
if ( !singleLayer && mAllowMultipleReturn && idResults.count() > 1 )
126126
{
127127
addSeparator();
128-
QAction* allAction = new QAction( tr( "%1 for all (%2)" ).arg( mDefaultActionName ).arg( idResults.count() ), this );
128+
QAction* allAction = new QAction( QgsApplication::getThemeIcon( "/mActionIdentify.svg" ), tr( "%1 all (%2)" ).arg( mDefaultActionName ).arg( idResults.count() ), this );
129129
allAction->setData( QVariant::fromValue<ActionData>( ActionData( 0 ) ) );
130130
connect( allAction, SIGNAL( hovered() ), this, SLOT( handleMenuHover() ) );
131131
addAction( allAction );
@@ -365,7 +365,7 @@ void QgsIdentifyMenu::addVectorLayer( QgsVectorLayer* layer, const QList<QgsMapT
365365
continue;
366366

367367
// add default identify action
368-
QAction* identifyFeatureAction = new QAction( mDefaultActionName, featureMenu );
368+
QAction* identifyFeatureAction = new QAction( QgsApplication::getThemeIcon( "/mActionIdentify.svg" ), mDefaultActionName, featureMenu );
369369
connect( identifyFeatureAction, SIGNAL( hovered() ), this, SLOT( handleMenuHover() ) );
370370
identifyFeatureAction->setData( QVariant::fromValue<ActionData>( ActionData( layer, result.mFeature.id() ) ) );
371371
featureMenu->addAction( identifyFeatureAction );
@@ -397,7 +397,7 @@ void QgsIdentifyMenu::addVectorLayer( QgsVectorLayer* layer, const QList<QgsMapT
397397
if ( mAllowMultipleReturn && results.count() > 1 )
398398
{
399399
layerMenu->addSeparator();
400-
QAction* allAction = new QAction( tr( "%1 for all (%2)" ).arg( mDefaultActionName ).arg( results.count() ), layerMenu );
400+
QAction* allAction = new QAction( QgsApplication::getThemeIcon( "/mActionIdentify.svg" ), tr( "%1 all (%2)" ).arg( mDefaultActionName ).arg( results.count() ), layerMenu );
401401
allAction->setData( QVariant::fromValue<ActionData>( ActionData( layer ) ) );
402402
connect( allAction, SIGNAL( hovered() ), this, SLOT( handleMenuHover() ) );
403403
layerMenu->addAction( allAction );

0 commit comments

Comments
 (0)
Please sign in to comment.