Skip to content

Commit 8490786

Browse files
committedFeb 26, 2016
[ui] improve gps tools icon
1 parent 4f1f7a8 commit 8490786

File tree

5 files changed

+1734
-10
lines changed

5 files changed

+1734
-10
lines changed
 
Lines changed: 378 additions & 0 deletions

Error rendering embedded code

Invalid image source.

‎src/plugins/gps_importer/gps_importer.svg

Lines changed: 1001 additions & 0 deletions

Error rendering embedded code

Invalid image source.

Lines changed: 345 additions & 0 deletions

Error rendering embedded code

Invalid image source.

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<RCC>
22
<qresource prefix="/" >
3-
<file>gps_importer.png</file>
4-
<file>create_gpx.png</file>
5-
<file>import_gpx.png</file>
3+
<file>gps_importer.svg</file>
4+
<file>create_gpx.svg</file>
5+
<file>import_gpx.svg</file>
66
</qresource>
77
</RCC>

‎src/plugins/gps_importer/qgsgpsplugin.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static const QString description_ = QObject::tr( "Tools for loading and importin
5353
static const QString category_ = QObject::tr( "Vector" );
5454
static const QString version_ = QObject::tr( "Version 0.1" );
5555
static const QgisPlugin::PLUGINTYPE type_ = QgisPlugin::UI;
56-
static const QString icon_ = ":/gps_importer.png";
56+
static const QString icon_ = ":/gps_importer.svg";
5757

5858

5959
/**
@@ -685,18 +685,18 @@ void QgsGPSPlugin::setCurrentTheme( const QString& theThemeName )
685685
{
686686
if ( QFile::exists( myCurThemePath ) )
687687
{
688-
mQActionPointer->setIcon( QIcon( myCurThemePath + "import_gpx.png" ) );
689-
mCreateGPXAction->setIcon( QIcon( myCurThemePath + "create_gpx.png" ) );
688+
mQActionPointer->setIcon( QIcon( myCurThemePath + "import_gpx.svg" ) );
689+
mCreateGPXAction->setIcon( QIcon( myCurThemePath + "create_gpx.svg" ) );
690690
}
691691
else if ( QFile::exists( myDefThemePath ) )
692692
{
693-
mQActionPointer->setIcon( QIcon( myDefThemePath + "import_gpx.png" ) );
694-
mCreateGPXAction->setIcon( QIcon( myDefThemePath + "create_gpx.png" ) );
693+
mQActionPointer->setIcon( QIcon( myDefThemePath + "import_gpx.svg" ) );
694+
mCreateGPXAction->setIcon( QIcon( myDefThemePath + "create_gpx.svg" ) );
695695
}
696696
else if ( QFile::exists( myQrcPath ) )
697697
{
698-
mQActionPointer->setIcon( QIcon( myQrcPath + "import_gpx.png" ) );
699-
mCreateGPXAction->setIcon( QIcon( myQrcPath + "create_gpx.png" ) );
698+
mQActionPointer->setIcon( QIcon( myQrcPath + "import_gpx.svg" ) );
699+
mCreateGPXAction->setIcon( QIcon( myQrcPath + "create_gpx.svg" ) );
700700
}
701701
else
702702
{

0 commit comments

Comments
 (0)
Please sign in to comment.