Revert "Allow building with Qt 5.12"

This reverts commit 54c6acadf2.

Differential Revision: https://phabricator.kde.org/D29147
This commit is contained in:
Vlad Zahorodnii 2020-04-24 09:45:06 +03:00
parent a848490cae
commit 5b947c6458

View file

@ -763,11 +763,7 @@ quint32 WaylandServer::createWindowId(SurfaceInterface *surface)
quint16 WaylandServer::createClientId(ClientConnection *c)
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
const QSet<unsigned short> ids(m_clientIds.constBegin(), m_clientIds.constEnd());
#else
const auto ids = m_clientIds.toSet();
#endif
quint16 id = 1;
if (!ids.isEmpty()) {
for (quint16 i = ids.count() + 1; i >= 1 ; i--) {