Replace struct to QPair