forked from qt-creator/qt-creator
Editor: Add replacement helper to document layout
More inline with the other text block user data members and cleaner on the client side. Additionally add some & for const arguments and remove test function call. Change-Id: I19e646aa204eedf447c02a2f76b89c3430280169 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -126,7 +126,7 @@ public:
|
||||
QByteArray expectedRawStringSuffix() { return m_expectedRawStringSuffix; }
|
||||
void setExpectedRawStringSuffix(const QByteArray &suffix) { m_expectedRawStringSuffix = suffix; }
|
||||
|
||||
void setReplacement(const QString replacement);
|
||||
void setReplacement(const QString &replacement);
|
||||
void clearReplacement() { m_replacement.reset(); }
|
||||
QTextDocument *replacement() const { return m_replacement.get(); }
|
||||
|
||||
@@ -179,6 +179,7 @@ public:
|
||||
static QByteArray expectedRawStringSuffix(const QTextBlock &block);
|
||||
static void updateReplacmentFormats(const QTextBlock &block, const FontSettings &fontSettings);
|
||||
static QString replacement(const QTextBlock &block);
|
||||
static QTextDocument *replacementDocument(const QTextBlock &block);
|
||||
|
||||
class TEXTEDITOR_EXPORT FoldValidator
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user