forked from qt-creator/qt-creator
Merge commit 'origin/1.3'
This commit is contained in:
@@ -12334,7 +12334,7 @@ Installiere Anwendung auf '%2'...</translation>
|
|||||||
<message>
|
<message>
|
||||||
<location line="-28"/>
|
<location line="-28"/>
|
||||||
<source>No Qt installed</source>
|
<source>No Qt installed</source>
|
||||||
<translation>Qt ist nicht installiert'</translation>
|
<translation>Qt ist nicht installiert</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@@ -1519,7 +1519,8 @@ BaseTextEditorPrivate::BaseTextEditorPrivate()
|
|||||||
m_inBlockSelectionMode(false),
|
m_inBlockSelectionMode(false),
|
||||||
m_lastEventWasBlockSelectionEvent(false),
|
m_lastEventWasBlockSelectionEvent(false),
|
||||||
m_blockSelectionExtraX(0),
|
m_blockSelectionExtraX(0),
|
||||||
m_moveLineUndoHack(false)
|
m_moveLineUndoHack(false),
|
||||||
|
m_cursorBlockNumber(-1)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2866,6 +2867,22 @@ void BaseTextEditor::updateCurrentLineHighlight()
|
|||||||
}
|
}
|
||||||
|
|
||||||
setExtraSelections(CurrentLineSelection, extraSelections);
|
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()
|
void BaseTextEditor::slotCursorPositionChanged()
|
||||||
|
@@ -253,6 +253,7 @@ public:
|
|||||||
QTimer *m_highlightBlocksTimer;
|
QTimer *m_highlightBlocksTimer;
|
||||||
|
|
||||||
QPointer<BaseTextEditorAnimator> m_animator;
|
QPointer<BaseTextEditorAnimator> m_animator;
|
||||||
|
int m_cursorBlockNumber;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
bin/qmake
|
bin/qmake
|
||||||
|
bin/lrelease
|
||||||
lib/libQtCore.so
|
lib/libQtCore.so
|
||||||
%%
|
%%
|
||||||
lib/libQtCore.la
|
lib/libQtCore.la
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
bin/qmake.exe
|
bin/qmake.exe
|
||||||
|
bin/lrelease.exe
|
||||||
bin/QtCore4.dll
|
bin/QtCore4.dll
|
||||||
bin/QtCored4.dll
|
bin/QtCored4.dll
|
||||||
%%
|
%%
|
||||||
|
Reference in New Issue
Block a user