fix build failure

This commit is contained in:
RickyRister 2025-01-14 18:47:47 -08:00
parent 7af5b0179c
commit edcf9bace5

View file

@ -325,7 +325,7 @@ bool UserListItemDelegate::editorEvent(QEvent *event,
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
static_cast<UserListWidget *>(parent())->showContextMenu(mouseEvent->globalPosition().toPoint(), index);
#else
static_cast<UserList *>(parent())->showContextMenu(mouseEvent->globalPos(), index);
static_cast<UserListWidget *>(parent())->showContextMenu(mouseEvent->globalPos(), index);
#endif
return true;
}