Port parts of the codebase from std::vector to QVector. Fix whitespace.