mirror of https://github.com/procxx/kepka.git
optimized emoji insert
This commit is contained in:
parent
afa28e9754
commit
5595570dfe
|
@ -653,7 +653,14 @@ void FlatTextarea::onDocumentContentsChange(int position, int charsRemoved, int
|
||||||
}
|
}
|
||||||
if (charsAdded <= 0) return;
|
if (charsAdded <= 0) return;
|
||||||
|
|
||||||
_insertions.push_back(Insertion(position, charsAdded));
|
// _insertions.push_back(Insertion(position, charsAdded));
|
||||||
|
_replacingEmojis = true;
|
||||||
|
QSizeF s = document()->pageSize();
|
||||||
|
processDocumentContentsChange(position, charsAdded);
|
||||||
|
if (document()->pageSize() != s) {
|
||||||
|
document()->setPageSize(s);
|
||||||
|
}
|
||||||
|
_replacingEmojis = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FlatTextarea::onDocumentContentsChanged() {
|
void FlatTextarea::onDocumentContentsChanged() {
|
||||||
|
|
Loading…
Reference in New Issue