From 28fc9c0aef10d8ad698fb39dcbbef0de673de19b Mon Sep 17 00:00:00 2001 From: Be Date: Sat, 16 Oct 2021 14:50:59 -0500 Subject: TrackDao: fix QVariant deprecation warning https://doc.qt.io/qt-6/qvariant-obsolete.html#QVariant-43 --- src/library/dao/trackdao.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/library') diff --git a/src/library/dao/trackdao.cpp b/src/library/dao/trackdao.cpp index f10914bfcc..179b5005ee 100644 --- a/src/library/dao/trackdao.cpp +++ b/src/library/dao/trackdao.cpp @@ -648,7 +648,11 @@ bool insertTrackLibrary( pTrackLibraryInsert->bindValue(":mixxx_deleted", 0); // We no longer store the wavesummary in the library table. +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + pTrackLibraryInsert->bindValue(":wavesummaryhex", QVariant(QMetaType(QMetaType::QByteArray))); +#else pTrackLibraryInsert->bindValue(":wavesummaryhex", QVariant(QVariant::ByteArray)); +#endif VERIFY_OR_DEBUG_ASSERT(pTrackLibraryInsert->exec()) { // We failed to insert the track. Maybe it is already in the library -- cgit v1.2.3