Plugins/PluginWizardPyRegExp.py

changeset 53
c3eb7cc1ff8b
parent 13
1af94a91f439
child 55
b5c84934de9c
diff -r ba69827929ee -r c3eb7cc1ff8b Plugins/PluginWizardPyRegExp.py
--- a/Plugins/PluginWizardPyRegExp.py	Tue Jan 12 18:33:34 2010 +0000
+++ b/Plugins/PluginWizardPyRegExp.py	Tue Jan 12 18:36:05 2010 +0000
@@ -10,7 +10,7 @@
 from PyQt4.QtCore import QObject, SIGNAL
 from PyQt4.QtGui import QDialog, QMessageBox
 
-from E4Gui.E4Application import e4App
+from E4Gui.E4Application import e5App
 from E4Gui.E4Action import E4Action
 
 from WizardPlugins.PyRegExpWizard.PyRegExpWizardDialog import \
@@ -113,7 +113,7 @@
         """
         Private method to handle the wizards action 
         """
-        editor = e4App().getObject("ViewManager").activeWindow()
+        editor = e5App().getObject("ViewManager").activeWindow()
         
         if editor == None:
                 QMessageBox.critical(None, 
@@ -126,4 +126,4 @@
                 # It should be done on this way to allow undo
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
-                editor.endUndoAction()
+                editor.endUndoAction()
\ No newline at end of file

eric ide

mercurial