Skip to content
Permalink
Browse files
Let qgis core plugins work with qgis api changes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9236 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 1, 2008
1 parent aa70283 commit 3fff44f3dff4d2ee4ea901d6e70aad500d4ac676
@@ -37,14 +37,14 @@ def __init__(self, iface):
def initGui(self):
# Create action that will start plugin configuration
self.action = QAction(QIcon(":/plugins/mapserver_export/icon.png"), \
"MapServer Export", self.iface.getMainWindow())
"MapServer Export", self.iface.mainWindow())
#self.action.setWhatsThis("Configuration for Zoom To Point plugin")
# connect the action to the run method
QObject.connect(self.action, SIGNAL("activated()"), self.run)

# Add toolbar button and menu item
self.iface.addToolBarIcon(self.action)
self.iface.addPluginMenu("&MapServer Export...", self.action)
self.iface.addPluginToMenu("&MapServer Export...", self.action)

def unload(self):
# Remove the plugin menu item and icon
@@ -25,13 +25,13 @@ def __init__(self, iface):
# ----------------------------------------- #
def initGui(self):
# create action that will start plugin configuration
self.action = QAction(QIcon(":/plugins/installer/icon.xpm"), "Install plugins", self.iface.getMainWindow())
self.action = QAction(QIcon(":/plugins/installer/icon.xpm"), "Install plugins", self.iface.mainWindow())
self.action.setWhatsThis("Plugin Installer")
QObject.connect(self.action, SIGNAL("activated()"), self.run)

# add toolbar button and menu item
self.iface.addToolBarIcon(self.action)
self.iface.addPluginMenu("&Plugin Installer", self.action)
self.iface.addPluginToMenu("&Plugin Installer", self.action)

# ----------------------------------------- #
def unload(self):

0 comments on commit 3fff44f

Please sign in to comment.