use Q_Q/Q_D from Qt rather than P_Q/P_D, style cleanups for Qt coding style