From 9229a9a60b24aabc5b16aa537c201f06b817189e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Fri, 25 Feb 2011 16:00:23 +0100 Subject: [PATCH] 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 --- src/plugins/texteditor/basetexteditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index e398e60a50c..5972de262d4 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -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())