Stop abusing []
Pass QVector<LineData> if that's needed don't make assumtions about the memmory layout of classes especial ones we don't control.