autotests: Fix testDbusInterface with Qt 6 build
The test fails because of type mismatch between QString and QByteArray
It would be great if somebody could confirm that
- if (char *dot = strchr(host.data(), '.')) {
- *dot = '\0';
- if (host == lowerHostName) {
+ if (int index = host.indexOf('.'); index != -1) {
+ if (QStringView(host).left(index) == lowerHostName) {
is correct, I'm confused by what that code tries to achieve