Fix a few {QByteArray,QList}::count related deprecation warnings

Change-Id: I493e557a2ec976560c9e37312d8ae860490a2831
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-05-23 15:51:53 +02:00
parent 1e9c11c3b3
commit 917523d7e3
7 changed files with 12 additions and 12 deletions

View File

@@ -9057,7 +9057,7 @@ QMimeData *TextEditorWidget::createMimeDataFromSelection(bool withHtml) const
} else {
const int startPosition = current.position() - selectionStart
- removedCount;
int endPosition = startPosition + current.text().count();
int endPosition = startPosition + current.text().size();
if (current != last)
endPosition++;
removedCount += endPosition - startPosition;