fix: Qt 6.4.3 build (#6032)

Also enables Qt 6.4.3 build in CI
This commit is contained in:
pajlada
2025-03-06 13:08:06 +01:00
committed by GitHub
parent 72369b1611
commit 01cf8c281d
9 changed files with 91 additions and 49 deletions
+18
View File
@@ -368,4 +368,22 @@ QStringView codepointSlice(QStringView str, qsizetype begin, qsizetype end)
return {sliceBegin, pos};
}
void removeFirstQS(QString &str)
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
str.removeFirst();
#else
str.remove(0, 1);
#endif
}
void removeLastQS(QString &str)
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
str.removeLast();
#else
str.chop(1);
#endif
}
} // namespace chatterino