forked from qt-creator/qt-creator
Stop line number label from resizing too often
For example when changing options in the git blame editor, the label would resize since it took into account the block count, which is temporarily 0 while the blame is calculated. Done-with: Tobias Hunger
This commit is contained in:
@@ -5917,7 +5917,7 @@ void BaseTextEditor::updateCursorPosition()
|
||||
const int line = block.blockNumber() + 1;
|
||||
const int column = cursor.position() - block.position();
|
||||
m_cursorPositionLabel->setText(tr("Line: %1, Col: %2").arg(line).arg(e->tabSettings().columnAt(block.text(), column)+1),
|
||||
tr("Line: %1, Col: 999").arg(e->blockCount()));
|
||||
tr("Line: 9999, Col: 999"));
|
||||
m_contextHelpId.clear();
|
||||
|
||||
if (!block.isVisible())
|
||||
|
||||
Reference in New Issue
Block a user