eric6/QScintilla/EditorOutlineModel.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
child 8243
cc717c2ae956
equal deleted inserted replaced
8221:0572a215bd2f 8222:5994b80b8760
241 else: 241 else:
242 return child 242 return child
243 elif hasattr(child, "linenos"): 243 elif hasattr(child, "linenos"):
244 if lineno in child.linenos(): 244 if lineno in child.linenos():
245 return child 245 return child
246 elif hasattr(child, "lineno"): 246 elif (
247 if lineno == child.lineno(): 247 hasattr(child, "lineno") and
248 return child 248 lineno == child.lineno()
249 ):
250 return child
249 else: 251 else:
250 return None 252 return None
251 253
252 if self.__populated: 254 if self.__populated:
253 for rootChild in self.rootItem.children(): 255 for rootChild in self.rootItem.children():

eric ide

mercurial