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:
@@ -47,7 +47,6 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace TextEditor {
|
||||
|
||||
class BaseTextDocument;
|
||||
class FontSettings;
|
||||
class SyntaxHighlighterPrivate;
|
||||
|
||||
@@ -56,9 +55,8 @@ class TEXTEDITOR_EXPORT SyntaxHighlighter : public QObject
|
||||
Q_OBJECT
|
||||
Q_DECLARE_PRIVATE(SyntaxHighlighter)
|
||||
public:
|
||||
SyntaxHighlighter(QObject *parent);
|
||||
SyntaxHighlighter(QObject *parent = 0);
|
||||
SyntaxHighlighter(QTextDocument *parent);
|
||||
SyntaxHighlighter(BaseTextDocument *parent);
|
||||
SyntaxHighlighter(QTextEdit *parent);
|
||||
virtual ~SyntaxHighlighter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user