diff --git a/src/kmailtransport/servertest.cpp b/src/kmailtransport/servertest.cpp --- a/src/kmailtransport/servertest.cpp +++ b/src/kmailtransport/servertest.cpp @@ -721,7 +721,11 @@ QList< ServerTest::Capability > ServerTest::capabilities() const { +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) return d->capabilityResults.toList(); +#else + return QList(d->capabilityResults.cbegin(), d->capabilityResults.cend()); +#endif } #include "moc_servertest.cpp"