According to the comment, I delete with this patch, QFile supports seek. qfile variable that is supposed to use ungetString can be one of the following:
- KCompressionDevice (implements seek),
- KGPGFile (inherits from QFile),
It can be seen that all objects support seek. There seems no point in complicating code with ungetString, so it has been removed.