Initialize private class q_ptr for QtUndo*