E5Gui/E5TextEditSearchWidget.py

changeset 6501
d564cd2c9a2d
parent 6499
dcff57f91861
child 6518
926d65bd23b8
child 6635
00d9efb7afc6
equal deleted inserted replaced
6499:dcff57f91861 6501:d564cd2c9a2d
155 if self.__widthForHeight: 155 if self.__widthForHeight:
156 self.horizontalLayout1.takeAt(self.__widthForHeightLayoutIndex) 156 self.horizontalLayout1.takeAt(self.__widthForHeightLayoutIndex)
157 else: 157 else:
158 self.verticalLayout.takeAt(self.__widthForHeightLayoutIndex) 158 self.verticalLayout.takeAt(self.__widthForHeightLayoutIndex)
159 self.__addWidthForHeightLayout(widthForHeight) 159 self.__addWidthForHeightLayout(widthForHeight)
160
161 self.__widthForHeight = widthForHeight
162 160
163 def __addWidthForHeightLayout(self, widthForHeight): 161 def __addWidthForHeightLayout(self, widthForHeight):
164 """ 162 """
165 Private method to set the middle part of the layout. 163 Private method to set the middle part of the layout.
166 164
171 self.horizontalLayout1.addLayout(self.horizontalLayout2) 169 self.horizontalLayout1.addLayout(self.horizontalLayout2)
172 self.__widthForHeightLayoutIndex = 2 170 self.__widthForHeightLayoutIndex = 2
173 else: 171 else:
174 self.verticalLayout.insertLayout(1, self.horizontalLayout2) 172 self.verticalLayout.insertLayout(1, self.horizontalLayout2)
175 self.__widthForHeightLayoutIndex = 1 173 self.__widthForHeightLayoutIndex = 1
174
175 self.__widthForHeight = widthForHeight
176 176
177 def attachTextEdit(self, textedit, editType="QTextEdit"): 177 def attachTextEdit(self, textedit, editType="QTextEdit"):
178 """ 178 """
179 Public method to attach a QTextEdit widget. 179 Public method to attach a QTextEdit widget.
180 180

eric ide

mercurial