Skip to content

Commit

Permalink
Move new gpx icon to standard location
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 30, 2021
1 parent aa68824 commit d0f3c26
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -925,6 +925,7 @@
<file>themes/default/mActionMeshDigitizing.svg</file>
<file>themes/default/mActionNewMeshLayer.svg</file>
<file>themes/default/mIconGeometryCollectionLayer.svg</file>
<file>themes/default/mActionNewGpx.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/mActionNewGpx.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/plugins/gps_importer/qgsgps_plugin.qrc
@@ -1,7 +1,6 @@
<RCC>
<qresource prefix="/" >
<qresource prefix="/">
<file>gps_importer.svg</file>
<file>create_gpx.svg</file>
<file>import_gpx.svg</file>
</qresource>
</RCC>
6 changes: 3 additions & 3 deletions src/plugins/gps_importer/qgsgpsplugin.cpp
Expand Up @@ -671,17 +671,17 @@ void QgsGpsPlugin::setCurrentTheme( const QString &themeName )
if ( QFile::exists( myCurThemePath ) )
{
mQActionPointer->setIcon( QIcon( myCurThemePath + "import_gpx.svg" ) );
mCreateGPXAction->setIcon( QIcon( myCurThemePath + "create_gpx.svg" ) );
mCreateGPXAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mActionNewGpx.svg" ) ) );
}
else if ( QFile::exists( myDefThemePath ) )
{
mQActionPointer->setIcon( QIcon( myDefThemePath + "import_gpx.svg" ) );
mCreateGPXAction->setIcon( QIcon( myDefThemePath + "create_gpx.svg" ) );
mCreateGPXAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mActionNewGpx.svg" ) ) );
}
else if ( QFile::exists( myQrcPath ) )
{
mQActionPointer->setIcon( QIcon( myQrcPath + "import_gpx.svg" ) );
mCreateGPXAction->setIcon( QIcon( myQrcPath + "create_gpx.svg" ) );
mCreateGPXAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mActionNewGpx.svg" ) ) );
}
else
{
Expand Down

0 comments on commit d0f3c26

Please sign in to comment.