Rework code folding

The new and cleaner foldingIndent in the block user data will
make it easier to support other kinds of indentation for various
other programming languages (like Python).
This commit is contained in:
mae
2010-05-20 15:10:26 +02:00
parent 55b26868e6
commit e07c34017e
11 changed files with 377 additions and 532 deletions

View File

@@ -224,9 +224,9 @@ public slots:
void cutLine();
void deleteLine();
void unCollapseAll();
void collapse();
void expand();
void unfoldAll();
void fold();
void unfold();
void selectEncoding();
void gotoBlockStart();
@@ -491,9 +491,9 @@ private:
bool hovered) const;
void toggleBlockVisible(const QTextBlock &block);
QRect collapseBox();
QRect foldBox();
QTextBlock collapsedBlockAt(const QPoint &pos, QRect *box = 0) const;
QTextBlock foldedBlockAt(const QPoint &pos, QRect *box = 0) const;
void updateLink(QMouseEvent *e);
void showLink(const Link &);