Skip to content

Commit a947e26

Browse files
committedAug 14, 2012
new shiny icon for RoadGraph plugin. Thanks Robert!
1 parent 880354f commit a947e26

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed
 

‎src/plugins/roadgraph/road-fast.png

1.08 KB
Loading

‎src/plugins/roadgraph/roadgraph.png

-1.06 KB
Binary file not shown.

‎src/plugins/roadgraph/roadgraph.qrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<RCC>
22
<qresource prefix="/roadgraph/" >
3-
<file>roadgraph.png</file>
3+
<file>road-fast.png</file>
44
<file>showdirect.png</file>
55
<file>about.png</file>
66
<file>coordinate_capture.png</file>

‎src/plugins/roadgraph/roadgraphplugin.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ static const QString sName = QObject::tr( "Road graph plugin" );
6060
static const QString sDescription = QObject::tr( "It solves the shortest path problem." );
6161
static const QString sCategory = QObject::tr( "Vector" );
6262
static const QString sPluginVersion = QObject::tr( "Version 0.1" );
63+
static const QString sPluginIcon = ":/roadgraph/road-fast.png";
6364
static const QgisPlugin::PLUGINTYPE sPluginType = QgisPlugin::UI;
6465

6566
//////////////////////////////////////////////////////////////////////
@@ -288,6 +289,11 @@ QGISEXTERN QString category()
288289
return sCategory;
289290
}
290291

292+
QGISEXTERN QString icon()
293+
{
294+
return sPluginIcon;
295+
}
296+
291297
// Return the type (either UI or MapLayer plugin)
292298
QGISEXTERN int type()
293299
{

0 commit comments

Comments
 (0)
Please sign in to comment.