Skip to content

Commit af2c2f6

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@8895 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7ea0378 commit af2c2f6

File tree

4 files changed

+1
-262
lines changed

4 files changed

+1
-262
lines changed

src/plugins/north_arrow/icon.xpm

Lines changed: 0 additions & 259 deletions
This file was deleted.
-199 KB
Binary file not shown.
-108 KB
Loading

src/plugins/north_arrow/plugin.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ email : tim@linfiniti.com
4646
//the gui subclass
4747
#include "plugingui.h"
4848

49-
// xpm for creating the toolbar icon
50-
#include "icon.xpm"
5149

5250

5351
#ifdef _MSC_VER
@@ -93,7 +91,7 @@ QgsNorthArrowPlugin::~QgsNorthArrowPlugin()
9391
void QgsNorthArrowPlugin::initGui()
9492
{
9593
// Create the action for tool
96-
myQActionPointer = new QAction(QIcon(icon), tr("&North Arrow"), this);
94+
myQActionPointer = new QAction(QIcon(":/northarrow.png"), tr("&North Arrow"), this);
9795
myQActionPointer->setWhatsThis(tr("Creates a north arrow that is displayed on the map canvas"));
9896
// Connect the action to the run
9997
connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));

0 commit comments

Comments
 (0)