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@8896 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 25, 2008
1 parent 32d5a82 commit 608a324
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 231 deletions.
Binary file removed src/plugins/scale_bar/icon.xcf
Binary file not shown.
228 changes: 0 additions & 228 deletions src/plugins/scale_bar/icon.xpm

This file was deleted.

4 changes: 1 addition & 3 deletions src/plugins/scale_bar/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ email : sbr00pwb@users.sourceforge.net
//the gui subclass
#include "plugingui.h"

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

#ifdef _MSC_VER
Expand Down Expand Up @@ -99,7 +97,7 @@ QgsScaleBarPlugin::~QgsScaleBarPlugin()
void QgsScaleBarPlugin::initGui()
{
// Create the action for tool
myQActionPointer = new QAction(QIcon(icon), tr("&Scale Bar"), this);
myQActionPointer = new QAction(QIcon(":/scalebar.png"), tr("&Scale Bar"), this);
myQActionPointer->setWhatsThis(tr("Creates a scale bar that is displayed on the map canvas"));
// Connect the action to the run
connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
Expand Down
Binary file modified src/plugins/scale_bar/scalebar.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions src/plugins/scale_bar/scalebar.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 608a324

Please sign in to comment.