refactor for threading

Coding standards: QString const&