P wave is the atria “firing”/depolarizing, the QRS complex is the ventricles depolarizing (and the atria are depolarizing while this happens), and the T wave is the ventricles depolarizing. Depolarizing is when it contracts, and repolarizing is when it relaxes and refills.