Skip to content

Commit

Permalink
Let qgis core plugins work with qgis api changes
Browse files Browse the repository at this point in the history
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 3fff44f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/plugins/mapserver_export/mapserverexport.py
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/plugin_installer/installer_plugin.py
Expand Up @@ -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):
Expand Down

0 comments on commit 3fff44f

Please sign in to comment.