Skip to content

Commit

Permalink
Icon updates for plugins (icon is now created in svg and uses qt reso…
Browse files Browse the repository at this point in the history
…urces instead of xpm)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8895 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 25, 2008
1 parent aee4951 commit 32d5a82
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 262 deletions.
259 changes: 0 additions & 259 deletions src/plugins/north_arrow/icon.xpm

This file was deleted.

Binary file removed src/plugins/north_arrow/north_arrow.xcf
Binary file not shown.
Binary file modified src/plugins/north_arrow/northarrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/plugins/north_arrow/plugin.cpp
Expand Up @@ -46,8 +46,6 @@ email : tim@linfiniti.com
//the gui subclass
#include "plugingui.h"

// xpm for creating the toolbar icon
#include "icon.xpm"


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

0 comments on commit 32d5a82

Please sign in to comment.