Calm down the possibility of a buffer overflow.

Still the maximum values do not fit exactly into the double,
though way better than the previous overflow while passing a
large qint64 as qint32 into the function. Fixes some progress
issues I've noticed with very large files that I downloaded.

Change-Id: I7c9ea1fbd8cdd454c3ffd5f952dd0118fdf11c28
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Niels Weber <niels.weber@digia.com>
Use qobject_cast where appropriate.

Change-Id: I433ce0a9521863f02777baff339c7226327f4628
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Niels Weber <niels.weber@digia.com>
Be more descriptive while downloading the actual component.

Task-number: QTIFW-438

Change-Id: I309c69cf8a7460d17d76a54fee724e10ab0c9347
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Niels Weber <niels.weber@digia.com>