Made some pointers const.
Made signal and slot arguments const references.