Navigation Menu

Skip to content

Commit

Permalink
Move GPS icon to standard icons folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 30, 2021
1 parent f115db6 commit ff13047
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 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/mIconGps.svg</file>
<file>themes/default/mActionNewGpx.svg</file>
</qresource>
<qresource prefix="/images/tips">
Expand Down
File renamed without changes
3 changes: 1 addition & 2 deletions src/plugins/gps_importer/qgsgps_plugin.qrc
@@ -1,6 +1,5 @@
<RCC>
<qresource prefix="/">
<qresource prefix="/" >
<file>gps_importer.svg</file>
<file>import_gpx.svg</file>
</qresource>
</RCC>
17 changes: 1 addition & 16 deletions src/plugins/gps_importer/qgsgpsplugin.cpp
Expand Up @@ -522,22 +522,7 @@ void QgsGpsPlugin::setCurrentTheme( const QString &themeName )
QString myQrcPath = QStringLiteral( ":/" );
if ( mQActionPointer )
{
if ( QFile::exists( myCurThemePath ) )
{
mQActionPointer->setIcon( QIcon( myCurThemePath + "import_gpx.svg" ) );
}
else if ( QFile::exists( myDefThemePath ) )
{
mQActionPointer->setIcon( QIcon( myDefThemePath + "import_gpx.svg" ) );
}
else if ( QFile::exists( myQrcPath ) )
{
mQActionPointer->setIcon( QIcon( myQrcPath + "import_gpx.svg" ) );
}
else
{
mQActionPointer->setIcon( QIcon() );
}
mQActionPointer->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconGps.svg" ) ) );
}
}

Expand Down

0 comments on commit ff13047

Please sign in to comment.