Fix Qt 6 deprecation warnings

This commit is contained in:
Alexander Babikov
2025-08-15 00:31:57 +05:00
parent bc3caa557f
commit d2509bd2ad
6 changed files with 40 additions and 0 deletions

View File

@@ -31,7 +31,11 @@ Downloader(const DownloadLocation downloadLocation, QObject *parent)
: QObject(parent)
, file(nullptr)
, reply(nullptr)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
, variantData(QMetaType(QMetaType::UnknownType))
#else
, variantData(QVariant::Invalid)
#endif
{
char PATHBUF[256];
switch (downloadLocation) {