diff --git a/sources/ElementsCollection/elementscollectionwidget.cpp b/sources/ElementsCollection/elementscollectionwidget.cpp index 2ab4e9ab3..9ed5ad635 100644 --- a/sources/ElementsCollection/elementscollectionwidget.cpp +++ b/sources/ElementsCollection/elementscollectionwidget.cpp @@ -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; } diff --git a/sources/bordertitleblock.cpp b/sources/bordertitleblock.cpp index 7a5c42020..c3cfcc3d6 100644 --- a/sources/bordertitleblock.cpp +++ b/sources/bordertitleblock.cpp @@ -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