forked from qt-creator/qt-creator
TextEditor: Clean up/streamline SyntaxHighlighter setup
No need for the third construction way if that's not really used by the factories anyway. Change-Id: Id3b34da5b0320babae9bef96a79bbaa52e0db06d Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -282,13 +282,6 @@ SyntaxHighlighter::SyntaxHighlighter(QTextDocument *parent)
|
||||
setDocument(parent);
|
||||
}
|
||||
|
||||
SyntaxHighlighter::SyntaxHighlighter(BaseTextDocument *parent)
|
||||
: d_ptr(new SyntaxHighlighterPrivate)
|
||||
{
|
||||
d_ptr->q_ptr = this;
|
||||
parent->setSyntaxHighlighter(this); // Extra logic (including setting the parent).
|
||||
}
|
||||
|
||||
/*!
|
||||
Constructs a SyntaxHighlighter and installs it on \a parent's
|
||||
QTextDocument. The specified QTextEdit also becomes the owner of
|
||||
|
||||
Reference in New Issue
Block a user