diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2021-10-17 12:01:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 12:01:42 +0200 |
commit | 913ea4584997c41f72ff479188575f25874e785f (patch) | |
tree | f269199290d8e58ebae0192ff9df293f74e95b41 /src/library | |
parent | 0974c0868741967813a72f879e523936808d7b25 (diff) | |
parent | 28fc9c0aef10d8ad698fb39dcbbef0de673de19b (diff) |
Merge pull request #4439 from Be-ing/trackdao_qvariant
TrackDao: fix QVariant deprecation warning
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/dao/trackdao.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |