forked from qt-creator/qt-creator
Revert "Editor: Make line spacing adjustable"
This does not work with text wrapping since there are multiple
QTextLines inside a block but we can not adjust the line hight inside a
block. This needs to be addressed inside Qt.
This reverts commit dc64f3207b.
Change-Id: If6c28056da9891eeeb75f5939a42f08360013a80
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -324,7 +324,7 @@ private:
|
||||
{
|
||||
QTextCursor tc = m_editor->textCursor();
|
||||
m_currentPos = tc.position();
|
||||
m_lineSpacing = m_editor->document()->documentLayout()->blockBoundingRect(tc.block()).height();
|
||||
m_lineSpacing = m_editor->cursorRect(tc).height();
|
||||
setFont(m_editor->extraArea()->font());
|
||||
|
||||
// Follow geometry of normal line numbers if visible,
|
||||
|
||||
Reference in New Issue
Block a user