summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/MatchingText.h
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-09-13 00:48:47 +0200
committerhjk <hjk121@nokiamail.com>2014-09-17 11:26:14 +0200
commit7104998d41edfa1a836a56350ac5571053c5407b (patch)
tree275a2273f5efcb6048e11788900879546d227507 /src/libs/cplusplus/MatchingText.h
parent3be2c9dfb8857fa320364483040ca81a23ecc001 (diff)
downloadqt-creator-7104998d41edfa1a836a56350ac5571053c5407b.tar.gz
CPlusPlus: Simplify MatchingText interface
Change-Id: I46878d9ca048d0c79032445f5adc27c12d27f30c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/libs/cplusplus/MatchingText.h')
-rw-r--r--src/libs/cplusplus/MatchingText.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libs/cplusplus/MatchingText.h b/src/libs/cplusplus/MatchingText.h
index 3fea1a8d02..1786b0f53e 100644
--- a/src/libs/cplusplus/MatchingText.h
+++ b/src/libs/cplusplus/MatchingText.h
@@ -26,6 +26,7 @@
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
+
#ifndef CPLUSPLUS_MATCHINGTEXT_H
#define CPLUSPLUS_MATCHINGTEXT_H
@@ -42,12 +43,9 @@ public:
static bool shouldInsertMatchingText(const QTextCursor &tc);
static bool shouldInsertMatchingText(QChar lookAhead);
- QString insertMatchingBrace(const QTextCursor &tc, const QString &text,
- QChar la, int *skippedChars) const;
- QString insertParagraphSeparator(const QTextCursor &tc) const;
-
-private:
- bool shouldInsertNewline(const QTextCursor &tc) const;
+ static QString insertMatchingBrace(const QTextCursor &tc, const QString &text,
+ QChar la, int *skippedChars);
+ static QString insertParagraphSeparator(const QTextCursor &tc);
};
} // namespace CPlusPlus