File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ def __init__(self, iface):
37
37
def initGui (self ):
38
38
# Create action that will start plugin configuration
39
39
self .action = QAction (QIcon (":/plugins/mapserver_export/icon.png" ), \
40
- "MapServer Export" , self .iface .getMainWindow ())
40
+ "MapServer Export" , self .iface .mainWindow ())
41
41
#self.action.setWhatsThis("Configuration for Zoom To Point plugin")
42
42
# connect the action to the run method
43
43
QObject .connect (self .action , SIGNAL ("activated()" ), self .run )
44
44
45
45
# Add toolbar button and menu item
46
46
self .iface .addToolBarIcon (self .action )
47
- self .iface .addPluginMenu ("&MapServer Export..." , self .action )
47
+ self .iface .addPluginToMenu ("&MapServer Export..." , self .action )
48
48
49
49
def unload (self ):
50
50
# Remove the plugin menu item and icon
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ def __init__(self, iface):
25
25
# ----------------------------------------- #
26
26
def initGui (self ):
27
27
# create action that will start plugin configuration
28
- self .action = QAction (QIcon (":/plugins/installer/icon.xpm" ), "Install plugins" , self .iface .getMainWindow ())
28
+ self .action = QAction (QIcon (":/plugins/installer/icon.xpm" ), "Install plugins" , self .iface .mainWindow ())
29
29
self .action .setWhatsThis ("Plugin Installer" )
30
30
QObject .connect (self .action , SIGNAL ("activated()" ), self .run )
31
31
32
32
# add toolbar button and menu item
33
33
self .iface .addToolBarIcon (self .action )
34
- self .iface .addPluginMenu ("&Plugin Installer" , self .action )
34
+ self .iface .addPluginToMenu ("&Plugin Installer" , self .action )
35
35
36
36
# ----------------------------------------- #
37
37
def unload (self ):
You can’t perform that action at this time.
0 commit comments