mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #1182
This commit is contained in:
parent
03168a02d2
commit
bcc3ad7038
|
@ -46,7 +46,6 @@ FileTransferWidget::FileTransferWidget(QWidget *parent, ToxFile file)
|
||||||
ui->filenameLabel->setText(file.fileName);
|
ui->filenameLabel->setText(file.fileName);
|
||||||
ui->progressBar->setValue(0);
|
ui->progressBar->setValue(0);
|
||||||
ui->fileSizeLabel->setText(getHumanReadableSize(file.filesize));
|
ui->fileSizeLabel->setText(getHumanReadableSize(file.filesize));
|
||||||
ui->progressLabel->setText(tr("Waiting to send...", "file transfer widget"));
|
|
||||||
ui->etaLabel->setText("");
|
ui->etaLabel->setText("");
|
||||||
|
|
||||||
backgroundColorAnimation = new QVariantAnimation(this);
|
backgroundColorAnimation = new QVariantAnimation(this);
|
||||||
|
@ -77,7 +76,12 @@ FileTransferWidget::FileTransferWidget(QWidget *parent, ToxFile file)
|
||||||
|
|
||||||
//preview
|
//preview
|
||||||
if(fileInfo.direction == ToxFile::SENDING)
|
if(fileInfo.direction == ToxFile::SENDING)
|
||||||
|
{
|
||||||
showPreview(fileInfo.filePath);
|
showPreview(fileInfo.filePath);
|
||||||
|
ui->progressLabel->setText(tr("Waiting to send...", "file transfer widget"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
ui->progressLabel->setText(tr("Accept to receive this file", "file transfer widget"));
|
||||||
|
|
||||||
setFixedHeight(78);
|
setFixedHeight(78);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user