Fix bytesToWrite()


We should not add the size of the internal write buffer here because
QIODevice::bytesToWrite() already checks it. Also, take into account
the size of 'writeChunkBuffer' on Windows.

Change-Id: I87dfcb4dd1cd9d2bbb6f82a084d79fb4db9323d8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
commite5dfb098638628b0215e11791bce372a656af390
parentd320f01018f0273e4fea2e0a7aa8f30ee8129587
authorAlex Trotsenko <alex1973tr@gmail.com>
committerAlex Trotsenko <alex1973tr@gmail.com>
commit timeSat, 22 Apr 2017 16:05:46 +0000