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:
Thorbjørn Lindeijer
2011-02-25 16:00:23 +01:00
parent 70b70770a4
commit 9229a9a60b

View File

@@ -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())