Skip to content

Commit

Permalink
Use of default action icon
Browse files Browse the repository at this point in the history
If an action is set, but this action has no icon.
So we can make a difference between unset and set action
it's the action-icon in yellow instead of blue
  • Loading branch information
signedav committed Oct 24, 2018
1 parent f346dce commit 583c426
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -723,6 +723,7 @@
<file>themes/default/mIconFolderLink.svg</file>
<file>themes/default/mIconFolderOpen.svg</file>
<file>themes/default/mIconFolderProject.svg</file>
<file>themes/default/mActionActive.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/mActionActive.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -6810,6 +6810,8 @@ void QgisApp::updateDefaultFeatureAction( QAction *action )

if ( !qgsAction.icon().isNull() )
mActionFeatureAction->setIcon( qgsAction.icon() );
else
mActionFeatureAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionActive.svg" ) ) );
}
else
{
Expand All @@ -6826,6 +6828,8 @@ void QgisApp::updateDefaultFeatureAction( QAction *action )

if ( !mapLayerAction->icon().isNull() )
mActionFeatureAction->setIcon( mapLayerAction->icon() );
else
mActionFeatureAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionActive.svg" ) ) );
}
else
{
Expand Down

0 comments on commit 583c426

Please sign in to comment.