Skip to content

Commit 608a324

Browse files
author
timlinux
committed
Icon updates for plugins (icon is now created in svg and uses qt resources instead of xpm)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8896 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 32d5a82 commit 608a324

File tree

5 files changed

+125
-231
lines changed

5 files changed

+125
-231
lines changed

src/plugins/scale_bar/icon.xcf

-5.64 KB
Binary file not shown.

src/plugins/scale_bar/icon.xpm

-228
This file was deleted.

src/plugins/scale_bar/plugin.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ email : sbr00pwb@users.sourceforge.net
4949
//the gui subclass
5050
#include "plugingui.h"
5151

52-
// xpm for creating the toolbar icon
53-
#include "icon.xpm"
5452
//
5553

5654
#ifdef _MSC_VER
@@ -99,7 +97,7 @@ QgsScaleBarPlugin::~QgsScaleBarPlugin()
9997
void QgsScaleBarPlugin::initGui()
10098
{
10199
// Create the action for tool
102-
myQActionPointer = new QAction(QIcon(icon), tr("&Scale Bar"), this);
100+
myQActionPointer = new QAction(QIcon(":/scalebar.png"), tr("&Scale Bar"), this);
103101
myQActionPointer->setWhatsThis(tr("Creates a scale bar that is displayed on the map canvas"));
104102
// Connect the action to the run
105103
connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));

src/plugins/scale_bar/scalebar.png

-125 KB
Loading

src/plugins/scale_bar/scalebar.svg

+124
Loading

0 commit comments

Comments
 (0)