1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
krepa098 2014-10-17 21:40:46 +02:00 committed by dubslow
parent 9ba1d4cf41
commit 523847d23b

View File

@ -46,7 +46,7 @@ FileTransferInstance::FileTransferInstance(ToxFile File)
filenameElided = fm.elidedText(filename, Qt::ElideRight, MAX_CONTENT_WIDTH);
size = getHumanReadableSize(File.filesize);
contentPrefWidth = std::max(fm.width(filenameElided), fm.width(size));
contentPrefWidth = std::max(fm.boundingRect(filenameElided).width(), fm.width(size));
speed = "0B/s";
eta = "00:00";