forked from qt-creator/qt-creator
DiffEditor: Remove indirect call to firstVisibleBlock
Change-Id: I37db7e280ea9f327ff8ab33b0f9b1fee813fcba9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -83,9 +83,6 @@ public:
|
||||
}
|
||||
void clearAll(const QString &message);
|
||||
void clearAllData();
|
||||
QTextBlock firstVisibleBlock() const {
|
||||
return TextEditorWidget::firstVisibleBlock();
|
||||
}
|
||||
void saveState();
|
||||
void restoreState();
|
||||
|
||||
@@ -449,8 +446,7 @@ void SideDiffEditorWidget::paintEvent(QPaintEvent *e)
|
||||
|
||||
QPainter painter(viewport());
|
||||
QPointF offset = contentOffset();
|
||||
QTextBlock firstBlock = firstVisibleBlock();
|
||||
QTextBlock currentBlock = firstBlock;
|
||||
QTextBlock currentBlock = firstVisibleBlock();
|
||||
|
||||
while (currentBlock.isValid()) {
|
||||
if (currentBlock.isVisible()) {
|
||||
|
||||
Reference in New Issue
Block a user