QmlEditor: show the id name when folding a block.

If the id of an element exists, it will be displayed instead of the normal "..."

Change-Id: I4e6633743b0e2ae014b7fbad3c752ef318c73659
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
This commit is contained in:
Nicolas Arnaud-Cormos
2011-09-14 22:16:28 +02:00
committed by Christian Kamm
parent d136b011e1
commit 635ca2a51a
4 changed files with 47 additions and 4 deletions

View File

@@ -216,6 +216,7 @@ protected:
TextEditor::BaseTextEditor *createEditor();
void createToolBar(QmlJSEditorEditable *editable);
TextEditor::BaseTextEditorWidget::Link findLinkAt(const QTextCursor &cursor, bool resolveTarget = true);
QString foldReplacementText(const QTextBlock &block) const;
private:
bool isClosingBrace(const QList<QmlJS::Token> &tokens) const;