mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fixed #451
This commit is contained in:
parent
9ba1d4cf41
commit
523847d23b
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue
Block a user