[QGIS Commit] r8895 - trunk/qgis/src/plugins/north_arrow

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Jul 25 05:29:18 EDT 2008


Author: timlinux
Date: 2008-07-25 05:29:18 -0400 (Fri, 25 Jul 2008)
New Revision: 8895

Removed:
   trunk/qgis/src/plugins/north_arrow/icon.xpm
   trunk/qgis/src/plugins/north_arrow/north_arrow.xcf
Modified:
   trunk/qgis/src/plugins/north_arrow/northarrow.png
   trunk/qgis/src/plugins/north_arrow/plugin.cpp
Log:
Icon updates for plugins (icon is now created in svg and uses qt resources instead of xpm)



Deleted: trunk/qgis/src/plugins/north_arrow/icon.xpm
===================================================================
(Binary files differ)

Deleted: trunk/qgis/src/plugins/north_arrow/north_arrow.xcf
===================================================================
(Binary files differ)

Modified: trunk/qgis/src/plugins/north_arrow/northarrow.png
===================================================================
(Binary files differ)

Modified: trunk/qgis/src/plugins/north_arrow/plugin.cpp
===================================================================
--- trunk/qgis/src/plugins/north_arrow/plugin.cpp	2008-07-24 22:10:20 UTC (rev 8894)
+++ trunk/qgis/src/plugins/north_arrow/plugin.cpp	2008-07-25 09:29:18 UTC (rev 8895)
@@ -46,8 +46,6 @@
 //the gui subclass
 #include "plugingui.h"
 
-// xpm for creating the toolbar icon
-#include "icon.xpm"
 
 
 #ifdef _MSC_VER
@@ -93,7 +91,7 @@
 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()));



More information about the QGIS-commit mailing list