Maternity Leave in Canada

Is there any fellow canadians that can help me?

by the time i finish work i will have exactly 600 hours for maternity leave.

However some of my hours come from my previous job that I quit. I quit because i wasn’t getting enough hours. Will those hours still qualify towards my total number of hours if I quit? I know it doesn’t count for regular EI but is it different for mat leave