Skip to content

Commit

Permalink
use identify icons in the identify menu
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 29, 2014
1 parent f571cdd commit 5a96ae2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsidentifymenu.cpp
Expand Up @@ -125,7 +125,7 @@ QList<QgsMapToolIdentify::IdentifyResult> QgsIdentifyMenu::exec( const QList<Qgs
if ( !singleLayer && mAllowMultipleReturn && idResults.count() > 1 )
{
addSeparator();
QAction* allAction = new QAction( tr( "%1 for all (%2)" ).arg( mDefaultActionName ).arg( idResults.count() ), this );
QAction* allAction = new QAction( QgsApplication::getThemeIcon( "/mActionIdentify.svg" ), tr( "%1 all (%2)" ).arg( mDefaultActionName ).arg( idResults.count() ), this );
allAction->setData( QVariant::fromValue<ActionData>( ActionData( 0 ) ) );
connect( allAction, SIGNAL( hovered() ), this, SLOT( handleMenuHover() ) );
addAction( allAction );
Expand Down Expand Up @@ -365,7 +365,7 @@ void QgsIdentifyMenu::addVectorLayer( QgsVectorLayer* layer, const QList<QgsMapT
continue;

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

0 comments on commit 5a96ae2

Please sign in to comment.