forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/11.0'
Change-Id: I8d1c9720a868da02b3157a48954eb4e262539c84
This commit is contained in:
@@ -4947,15 +4947,15 @@ void TextEditorWidget::paintEvent(QPaintEvent *e)
|
||||
|
||||
paintBlock(&painter, data.block, data.offset, blockData.selections, data.eventRect);
|
||||
|
||||
if (data.isEditable && data.context.cursorPosition < -1
|
||||
&& !blockData.layout->preeditAreaText().isEmpty()) {
|
||||
const int cursorPos = blockData.layout->preeditAreaPosition()
|
||||
- (data.context.cursorPosition + 2);
|
||||
data.cursors.append(generateCursorData(cursorPos, data, blockData, painter));
|
||||
}
|
||||
|
||||
if (drawCursor && !drawCursorAsBlock)
|
||||
if (data.isEditable && !blockData.layout->preeditAreaText().isEmpty()) {
|
||||
if (data.context.cursorPosition < -1) {
|
||||
const int cursorPos = blockData.layout->preeditAreaPosition()
|
||||
- (data.context.cursorPosition + 2);
|
||||
data.cursors = {generateCursorData(cursorPos, data, blockData, painter)};
|
||||
}
|
||||
} else if (drawCursor && !drawCursorAsBlock) {
|
||||
d->addCursorsPosition(data, painter, blockData);
|
||||
}
|
||||
d->paintIndentDepth(data, painter, blockData);
|
||||
d->paintAdditionalVisualWhitespaces(data, painter, blockData.boundingRect.top());
|
||||
d->paintReplacement(data, painter, blockData.boundingRect.top());
|
||||
|
||||
Reference in New Issue
Block a user