Switch to QTextStream

Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>