forked from qt-creator/qt-creator
Add common interface for text formats inside syntax highlighter
Change-Id: I87f64446161a57aea0896f68e4eafacef791969b Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -217,9 +217,6 @@ protected:
|
||||
void mouseDoubleClickEvent(QMouseEvent *e);
|
||||
void keyPressEvent(QKeyEvent *);
|
||||
|
||||
public slots:
|
||||
void setFontSettings(const TextEditor::FontSettings &);
|
||||
|
||||
private slots:
|
||||
void slotActivateAnnotation();
|
||||
void slotPopulateDiffBrowser();
|
||||
@@ -244,8 +241,7 @@ protected:
|
||||
// Implement to identify a change number at the cursor position
|
||||
virtual QString changeUnderCursor(const QTextCursor &) const = 0;
|
||||
// Factory functions for highlighters
|
||||
virtual BaseAnnotationHighlighter *createAnnotationHighlighter(const QSet<QString> &changes,
|
||||
const QColor &bg) const = 0;
|
||||
virtual BaseAnnotationHighlighter *createAnnotationHighlighter(const QSet<QString> &changes) const = 0;
|
||||
// Returns a local file name from the diff file specification
|
||||
// (text cursor at position above change hunk)
|
||||
QString fileNameFromDiffSpecification(const QTextBlock &inBlock) const;
|
||||
|
||||
Reference in New Issue
Block a user