Skip to content

Commit

Permalink
Merge pull request #4443 from Be-ing/stardelegate_canconvert
Browse files Browse the repository at this point in the history
StarDelegate: replace deprecated QVariant::canConvert
  • Loading branch information
uklotzde authored Oct 17, 2021
2 parents f1ecb58 + 047ad43 commit 0974c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/stardelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<StarRating>())) {
if (index.data().canConvert<StarRating>()) {
if (m_isOneCellInEditMode) {
m_pTableView->closePersistentEditor(m_currentEditedCellIndex);
}
Expand Down

0 comments on commit 0974c08

Please sign in to comment.