forked from qt-creator/qt-creator
DiffEditor: Use settings' foreground color for highlights
Simplify drawing highlights by passing selections into a drawing function. Reduce selections which are covered completely by other selections. Task-number: QTCREATORBUG-12844 Change-Id: If282d5c881d25cac1b8db4ac8dfc45d47b0b8580 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -495,7 +495,11 @@ protected:
|
||||
bool viewportEvent(QEvent *event);
|
||||
void resizeEvent(QResizeEvent *);
|
||||
void paintEvent(QPaintEvent *);
|
||||
virtual void innerPaintEvent(QPaintEvent *) {}
|
||||
virtual void paintBlock(QPainter *painter,
|
||||
const QTextBlock &block,
|
||||
const QPointF &offset,
|
||||
const QVector<QTextLayout::FormatRange> &selections,
|
||||
const QRect &clipRect) const;
|
||||
void timerEvent(QTimerEvent *);
|
||||
void mouseMoveEvent(QMouseEvent *);
|
||||
void mousePressEvent(QMouseEvent *);
|
||||
|
||||
Reference in New Issue
Block a user