Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py

changeset 53
c3eb7cc1ff8b
parent 45
9a18f4dbb493
child 55
b5c84934de9c
equal deleted inserted replaced
52:ba69827929ee 53:c3eb7cc1ff8b
11 import os 11 import os
12 12
13 from PyQt4.QtCore import * 13 from PyQt4.QtCore import *
14 from PyQt4.QtGui import * 14 from PyQt4.QtGui import *
15 15
16 from E4Gui.E4Application import e4App 16 from E4Gui.E4Application import e5App
17 17
18 from .Ui_QRegExpWizardDialog import Ui_QRegExpWizardDialog 18 from .Ui_QRegExpWizardDialog import Ui_QRegExpWizardDialog
19 19
20 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog 20 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog
21 from .QRegExpWizardCharactersDialog import QRegExpWizardCharactersDialog 21 from .QRegExpWizardCharactersDialog import QRegExpWizardCharactersDialog
74 self.nextButton.setEnabled(False) 74 self.nextButton.setEnabled(False)
75 75
76 if fromEric: 76 if fromEric:
77 self.buttonBox.button(QDialogButtonBox.Close).hide() 77 self.buttonBox.button(QDialogButtonBox.Close).hide()
78 self.copyButton = None 78 self.copyButton = None
79 uitype = e4App().getObject("Project").getProjectType() 79 uitype = e5App().getObject("Project").getProjectType()
80 else: 80 else:
81 self.copyButton = \ 81 self.copyButton = \
82 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) 82 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole)
83 self.copyButton.setToolTip(\ 83 self.copyButton.setToolTip(\
84 self.trUtf8("Copy the regular expression to the clipboard")) 84 self.trUtf8("Copy the regular expression to the clipboard"))

eric ide

mercurial