Add icon for run selected

This commit is contained in:
Nyall Dawson 2024-04-22 13:52:48 +10:00
parent 2f5ad6b51f
commit a485eb811c
4 changed files with 4 additions and 2 deletions

View File

@ -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>

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="#fce94f" stroke="#c4a000" stroke-linecap="round" stroke-width="1.077" d="M2.538 2.538h12.924v12.924H2.538Z"/><path fill="#5a8c5a" stroke="#4c734c" stroke-linecap="round" stroke-linejoin="round" d="m21.649 13.985-12.15 7.753V6.231Z" style="fill-rule:evenodd;stroke-width:1;stroke-dasharray:none"/><path fill="#fff" fill-opacity=".529" d="m11.016 20.182-.002-12.404L10 7.149l.008 13.666z" style="fill-rule:evenodd;stroke-width:.815979"/></svg>

After

Width:  |  Height:  |  Size: 516 B

View File

@ -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 );
}

View File

@ -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>