From 047ad434e395ca01397f62ef5638f82b4dd18e4d Mon Sep 17 00:00:00 2001 From: Be Date: Sat, 16 Oct 2021 15:29:13 -0500 Subject: [PATCH] StarDelegate: replace deprecated QVariant::canConvert --- src/library/stardelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/stardelegate.cpp b/src/library/stardelegate.cpp index 8d000e605ae..6df2122ea7a 100644 --- a/src/library/stardelegate.cpp +++ b/src/library/stardelegate.cpp @@ -75,7 +75,7 @@ void StarDelegate::cellEntered(const QModelIndex& index) { // This slot is called if the mouse pointer enters ANY cell on the // QTableView but the code should only be executed on a column with a // StarRating. - if (index.data().canConvert(qMetaTypeId())) { + if (index.data().canConvert()) { if (m_isOneCellInEditMode) { m_pTableView->closePersistentEditor(m_currentEditedCellIndex); }