qt gui: Cache current source file to improve performance