Replaced use of d_ptr and q_ptr with usage of Q_D and Q_Q