TextEditor: update matching parenthesis in the editor

... after updating the parenthesis in the layout

Task-number: QTCREATORBUG-26183
Change-Id: I346046fbc3932b94227c1ac5bee6b0d7c44651e1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2021-09-24 09:59:50 +02:00
parent 0524e9236f
commit 421e06393f
3 changed files with 31 additions and 8 deletions

View File

@@ -52,8 +52,12 @@ struct TEXTEDITOR_EXPORT Parenthesis
QChar chr;
Utils::Id source;
Type type = Opened;
bool operator==(const Parenthesis &other) const;
};
TEXTEDITOR_EXPORT QDebug operator<<(QDebug debug, const Parenthesis &parenthesis);
class TEXTEDITOR_EXPORT CodeFormatterData
{
public:
@@ -231,6 +235,7 @@ public:
signals:
void updateExtraArea();
void foldChanged(const int blockNumber, bool folded);
void parenthesesChanged(const QTextBlock block);
};
} // namespace TextEditor