summaryrefslogtreecommitdiff
path: root/src/assistant
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-03-20 13:41:47 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-03-21 11:43:57 +0100
commit2d9eeed72084160c04d9d0dfe7a02528f3ed6e3d (patch)
tree8af3ef715e2904ea9706a48ab2d26825493b9c75 /src/assistant
parentc25ae7e86f20a7bd9a65933bec8bff4f9d9d48cd (diff)
downloadqttools-2d9eeed72084160c04d9d0dfe7a02528f3ed6e3d.tar.gz
Compile without warning after QString::count deprecation
Pick-to: 6.3 Change-Id: Ie3a3f8833bf88716f3b13540e74ea7800c07234c Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/assistant')
-rw-r--r--src/assistant/help/qhelpdbreader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/assistant/help/qhelpdbreader.cpp b/src/assistant/help/qhelpdbreader.cpp
index 35aaef14d..b78f239b6 100644
--- a/src/assistant/help/qhelpdbreader.cpp
+++ b/src/assistant/help/qhelpdbreader.cpp
@@ -147,7 +147,7 @@ QString QHelpDBReader::qtVersionHeuristic() const
// We drop any non digit characters.
const QChar dot(QLatin1Char('.'));
QString tail;
- for (int i = nameSpace.count(); i > 0; --i) {
+ for (int i = nameSpace.size(); i > 0; --i) {
const QChar c = nameSpace.at(i - 1);
if (c.isDigit() || c == dot)
tail.prepend(c);
@@ -173,16 +173,16 @@ QString QHelpDBReader::qtVersionHeuristic() const
tail.chop(1);
if (tail.count(dot) == 0) {
- if (tail.count() > 5)
+ if (tail.size() > 5)
return tail;
// When we have 3 digits, we split it like: ABC -> A.B.C
// When we have 4 digits, we split it like: ABCD -> A.BC.D
// When we have 5 digits, we split it like: ABCDE -> A.BC.DE
const int major = tail.left(1).toInt();
- const int minor = tail.count() == 3
+ const int minor = tail.size() == 3
? tail.mid(1, 1).toInt() : tail.mid(1, 2).toInt();
- const int patch = tail.count() == 5
+ const int patch = tail.size() == 5
? tail.right(2).toInt() : tail.right(1).toInt();
return QString::fromUtf8("%1.%2.%3").arg(major).arg(minor).arg(patch);