mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
QT_VERSION < 0x060000 -> (QT_VERSION < QT_VERSION_CHECK(5, 15, 1))
page order has been fixed when TOC page is present and some pages are not printable
This commit is contained in:
@@ -282,14 +282,13 @@ void CodeEditor::insertCompletion(const QString &completion)
|
||||
if (m_completer->widget() != this)
|
||||
return;
|
||||
QTextCursor tc = textCursor();
|
||||
int extra = completion.length() - m_completer->completionPrefix().length();
|
||||
//tc.movePosition(QTextCursor::Left);
|
||||
//tc.movePosition(QTextCursor::EndOfWord);
|
||||
// QString prefix = m_completer->completionPrefix();
|
||||
// int extra = completion.length() - prefix.length();
|
||||
for (int i=0; i < m_completer->completionPrefix().length(); ++i ) {
|
||||
tc.deletePreviousChar();
|
||||
}
|
||||
tc.insertText(completion);
|
||||
//tc.insertText(completion.right(extra));
|
||||
// tc.insertText(completion.right(extra));
|
||||
setTextCursor(tc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user