Convert more usages of std::string to QString.

Remove some redundant includes and functions.