Preferences/ConfigurationPages/QtPage.py

changeset 945
8cd4d08fa9f6
parent 882
34b86be88bf0
child 1131
7781e396c903
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
15 from .ConfigurationPageBase import ConfigurationPageBase 15 from .ConfigurationPageBase import ConfigurationPageBase
16 from .Ui_QtPage import Ui_QtPage 16 from .Ui_QtPage import Ui_QtPage
17 17
18 import Preferences 18 import Preferences
19 import Utilities 19 import Utilities
20
20 21
21 class QtPage(ConfigurationPageBase, Ui_QtPage): 22 class QtPage(ConfigurationPageBase, Ui_QtPage):
22 """ 23 """
23 Class implementing the Qt configuration page. 24 Class implementing the Qt configuration page.
24 """ 25 """
83 def __updateQt4Sample(self): 84 def __updateQt4Sample(self):
84 """ 85 """
85 Private slot to update the Qt4 tools sample label. 86 Private slot to update the Qt4 tools sample label.
86 """ 87 """
87 self.qt4SampleLabel.setText("Sample: {0}designer{1}"\ 88 self.qt4SampleLabel.setText("Sample: {0}designer{1}"\
88 .format(self.qt4PrefixEdit.text(), 89 .format(self.qt4PrefixEdit.text(),
89 self.qt4PostfixEdit.text())) 90 self.qt4PostfixEdit.text()))
90 91
91 @pyqtSlot(str) 92 @pyqtSlot(str)
92 def on_qt4PrefixEdit_textChanged(self, txt): 93 def on_qt4PrefixEdit_textChanged(self, txt):
93 """ 94 """
104 105
105 @param txt the entered string (string) 106 @param txt the entered string (string)
106 """ 107 """
107 self.__updateQt4Sample() 108 self.__updateQt4Sample()
108 109
110
109 def create(dlg): 111 def create(dlg):
110 """ 112 """
111 Module function to create the configuration page. 113 Module function to create the configuration page.
112 114
113 @param dlg reference to the configuration dialog 115 @param dlg reference to the configuration dialog

eric ide

mercurial