aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/textdocumentlayout.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2021-09-24 12:08:33 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2021-09-24 11:57:12 +0000
commit47cd1def7a7a9909a3cfc2f21f9b8a8631600a5a (patch)
tree80f008632ddcf2ec432c3967bcb76754fd54f642 /src/plugins/texteditor/textdocumentlayout.h
parent421e06393ff9cb8f409ef5703723aaefee857c7d (diff)
TextEditor: Provide a function for inserting a parenthesis
... into a sorted list. Change-Id: Ibc39a345425945437cc8b8d9237589746143b2d9 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/textdocumentlayout.h')
-rw-r--r--src/plugins/texteditor/textdocumentlayout.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/textdocumentlayout.h b/src/plugins/texteditor/textdocumentlayout.h
index 69b0159860..ce86ad4296 100644
--- a/src/plugins/texteditor/textdocumentlayout.h
+++ b/src/plugins/texteditor/textdocumentlayout.h
@@ -38,8 +38,6 @@
#include <QPlainTextDocumentLayout>
namespace TextEditor {
-struct Parenthesis;
-using Parentheses = QVector<Parenthesis>;
struct TEXTEDITOR_EXPORT Parenthesis
{
@@ -55,6 +53,8 @@ struct TEXTEDITOR_EXPORT Parenthesis
bool operator==(const Parenthesis &other) const;
};
+using Parentheses = QVector<Parenthesis>;
+TEXTEDITOR_EXPORT void insertSorted(Parentheses &list, const Parenthesis &elem);
TEXTEDITOR_EXPORT QDebug operator<<(QDebug debug, const Parenthesis &parenthesis);