communi / libcommuni

A cross-platform IRC framework for Qt
https://communi.github.io
BSD 3-Clause "New" or "Revised" License
84 stars 37 forks source link

toSet() and toList() are deprecated since Qt 5.14 and causing 15 warnings in libcommuni #80

Closed Timac closed 4 years ago

Timac commented 4 years ago

Steps to reproduce:

Result: You see 15 warnings due to the use of the deprecated toSet() and toList()

#if QT_DEPRECATED_SINCE(5, 14) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
    QT_DEPRECATED_X("Use QList<T>(set.begin(), set.end()) instead.")
    static QList<T> fromSet(const QSet<T> &set);
    QT_DEPRECATED_X("Use QSet<T>(list.begin(), list.end()) instead.")
    QSet<T> toSet() const;
Deprecated warnings