Skip to content

Commit

Permalink
Add icon for run selected
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 3, 2024
1 parent 2f5ad6b commit a485eb8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@
<file>themes/default/mTemporalNavigationMovie.svg</file>
<file>themes/default/mActionAddSensorThingsLayer.svg</file>
<file>themes/default/mIconSensorThings.svg</file>
<file>themes/default/mActionRunSelected.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/mActionRunSelected.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/gui/processing/models/qgsmodelcomponentgraphicitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ void QgsModelChildAlgorithmGraphicItem::contextMenuEvent( QGraphicsSceneContextM
if ( isSelected() )
{
QAction *runSelectedStepsAction = popupmenu->addAction( QObject::tr( "Run Selected Steps…" ) );
runSelectedStepsAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mActionStart.svg" ) ) );
runSelectedStepsAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mActionRunSelected.svg" ) ) );
connect( runSelectedStepsAction, &QAction::triggered, this, &QgsModelChildAlgorithmGraphicItem::runSelected );
}

Expand Down
2 changes: 1 addition & 1 deletion src/ui/processing/qgsmodeldesignerdialogbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@
<action name="mActionRunSelectedSteps">
<property name="icon">
<iconset resource="../../../images/images.qrc">
<normaloff>:/images/themes/default/mActionStart.svg</normaloff>:/images/themes/default/mActionStart.svg</iconset>
<normaloff>:/images/themes/default/mActionRunSelected.svg</normaloff>:/images/themes/default/mActionRunSelected.svg</iconset>
</property>
<property name="text">
<string>Run Selected Steps…</string>
Expand Down

0 comments on commit a485eb8

Please sign in to comment.