mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Updated deprecated QString::count() -> length()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user