From a530bd9adb58ee6b9f94862e18b01d731580af1d Mon Sep 17 00:00:00 2001 From: thunder2 Date: Tue, 22 Jul 2025 00:10:39 +0200 Subject: [PATCH] Replaced deprecated QList::toList by range constructors --- retroshare-gui/src/util/imageutil.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retroshare-gui/src/util/imageutil.cpp b/retroshare-gui/src/util/imageutil.cpp index 690872bdb..57a07de3f 100644 --- a/retroshare-gui/src/util/imageutil.cpp +++ b/retroshare-gui/src/util/imageutil.cpp @@ -340,7 +340,11 @@ void ImageUtil::quantization(const QImage &img, QVector &palette) colors.insert(pixel); } +#if QT_VERSION >= QT_VERSION_CHECK (5, 14, 0) + QList colorlist(colors.begin(), colors.end()); +#else QList colorlist = colors.toList(); +#endif //don't do the algoritmh if we have less than 16 different colors if(colorlist.size() <= (1 << bits)) { for(int i = 0; i < colors.count(); ++i)