Skip to content

Commit

Permalink
Merge pull request #4446 from Be-ing/basetracktablemodel_qmetatype
Browse files Browse the repository at this point in the history
BaseTrackTableModel: fix Qt6 QVariant deprecation warning
  • Loading branch information
Holzhaus authored Oct 17, 2021
2 parents dc3d9df + 38a5f02 commit 02a3769
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/library/basetracktablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,11 @@ QVariant BaseTrackTableModel::roleValue(
}
case ColumnCache::COLUMN_LIBRARYTABLE_LAST_PLAYED_AT: {
QDateTime lastPlayedAt;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
if (rawValue.metaType().id() == QMetaType::QString) {
#else
if (rawValue.type() == QVariant::String) {
#endif
// column value
lastPlayedAt = mixxx::sqlite::readGeneratedTimestamp(rawValue);
} else {
Expand Down

0 comments on commit 02a3769

Please sign in to comment.