diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 84573a7569991cd0d40dcc03e281cbaf0ff11478..0e6464dcf896146634f94b066d3be3ea71001f6e 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -12334,7 +12334,7 @@ Installiere Anwendung auf '%2'...</translation> <message> <location line="-28"/> <source>No Qt installed</source> - <translation>Qt ist nicht installiert'</translation> + <translation>Qt ist nicht installiert</translation> </message> </context> <context> diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 3a8c5e9437c10864a6d81b89990e1ceb9f3629d7..73d20440d42b27aa7ee75b461e8df335ca24b59e 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -1519,7 +1519,8 @@ BaseTextEditorPrivate::BaseTextEditorPrivate() m_inBlockSelectionMode(false), m_lastEventWasBlockSelectionEvent(false), m_blockSelectionExtraX(0), - m_moveLineUndoHack(false) + m_moveLineUndoHack(false), + m_cursorBlockNumber(-1) { } @@ -2866,6 +2867,22 @@ void BaseTextEditor::updateCurrentLineHighlight() } setExtraSelections(CurrentLineSelection, extraSelections); + + + // the extra area shows information for the entire current block, not just the currentline. + // This is why we must force a bigger update region. + int cursorBlockNumber = textCursor().blockNumber(); + if (cursorBlockNumber != d->m_cursorBlockNumber) { + QPointF offset = contentOffset(); + QTextBlock block = document()->findBlockByNumber(d->m_cursorBlockNumber); + if (block.isValid()) + d->m_extraArea->update(blockBoundingGeometry(block).translated(offset).toAlignedRect()); + block = document()->findBlockByNumber(cursorBlockNumber); + if (block.isValid()) + d->m_extraArea->update(blockBoundingGeometry(block).translated(offset).toAlignedRect()); + d->m_cursorBlockNumber = cursorBlockNumber; + } + } void BaseTextEditor::slotCursorPositionChanged() diff --git a/src/plugins/texteditor/basetexteditor_p.h b/src/plugins/texteditor/basetexteditor_p.h index 39bb0dfedbc5978c7dfc584a3ecf2c953e1d454e..eb58cfdd2b3794fc5af9d13fd88593f63bf71171 100644 --- a/src/plugins/texteditor/basetexteditor_p.h +++ b/src/plugins/texteditor/basetexteditor_p.h @@ -253,6 +253,7 @@ public: QTimer *m_highlightBlocksTimer; QPointer<BaseTextEditorAnimator> m_animator; + int m_cursorBlockNumber; }; diff --git a/src/tools/qpatch/files-to-patch-linux b/src/tools/qpatch/files-to-patch-linux index 2cf70c97291f3560934a2dd28e9821cd7ffcae55..33e5eeef7d82ac32541ad79e78e61db2f7ea06e6 100644 --- a/src/tools/qpatch/files-to-patch-linux +++ b/src/tools/qpatch/files-to-patch-linux @@ -1,4 +1,5 @@ bin/qmake +bin/lrelease lib/libQtCore.so %% lib/libQtCore.la diff --git a/src/tools/qpatch/files-to-patch-windows b/src/tools/qpatch/files-to-patch-windows index 62dafff80d811bcff63113742041e5edbfd1014f..a85411409b519f927c118bc1df6a14cbd0bd4e45 100644 --- a/src/tools/qpatch/files-to-patch-windows +++ b/src/tools/qpatch/files-to-patch-windows @@ -1,4 +1,5 @@ bin/qmake.exe +bin/lrelease.exe bin/QtCore4.dll bin/QtCored4.dll %%