What determines whether qasr is real or relative?

Qasr: Definitions, Real and Relative Restriction, and Ifrād, Qalb and Taʿyīn