1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
Dubslow 2015-02-15 18:56:11 -06:00
parent 03168a02d2
commit bcc3ad7038
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA

View File

@ -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);
} }