Fri, 11 Mar 2011 08:55:14 +0100
Reenabled setContractedFolds() usage after a fix in QScintilla 2.5.
QScintilla/QsciScintillaCompat.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/QsciScintillaCompat.py Thu Mar 10 19:46:13 2011 +0100 +++ b/QScintilla/QsciScintillaCompat.py Fri Mar 11 08:55:14 2011 +0100 @@ -1107,15 +1107,15 @@ line += 1 return folds -## if "setContractedFolds" not in QsciScintilla.__dict__: - def setContractedFolds(self, folds): - """ - Public method to set a list of line numbers of collapsed folds. - - @param folds list of line numbers of folded lines (list of integer) - """ - for line in folds: - self.foldLine(line) + if "setContractedFolds" not in QsciScintilla.__dict__: + def setContractedFolds(self, folds): + """ + Public method to set a list of line numbers of collapsed folds. + + @param folds list of line numbers of folded lines (list of integer) + """ + for line in folds: + self.foldLine(line) ## ######################################################################### ## # methods below have been added to QScintilla starting with version 2.x