Updated deprecated QString::count() -> length()

This commit is contained in:
Magnus Hellströmer
2024-09-09 01:04:12 +02:00
parent 373fcfb4ea
commit 07118d7a11
2 changed files with 3 additions and 3 deletions

View File

@@ -765,7 +765,7 @@ void ElementsCollectionWidget::search()
}
//start the search when text have at least 3 letters.
if (text.count() < 3) {
if (text.length() < 3) {
return;
}

View File

@@ -941,8 +941,8 @@ QString BorderTitleBlock::incrementLetters(const QString &string) {
} else {
// separate previous digits from last digit
// separe les digits precedents du dernier digit
QString first_digits(string.left(string.count() - 1));
QChar last_digit(string.at(string.count() - 1));
QString first_digits(string.left(string.length() - 1));
QChar last_digit(string.at(string.length() - 1));
if (last_digit != 'Z') {
// increments the last digit
// incremente le dernier digit