fix: use QLocale for display time as locale string
This commit is contained in:
parent
eab16d6ea2
commit
d65c349dbf
|
@ -36,9 +36,9 @@ void VerticalPreviewWidget::updatePreviewContent(const QModelIndex &index)
|
|||
|
||||
ui->typeAndSizeLabel->setText(QString("%1 - %2").arg(mimeTypeDisplayName, this->locale().formattedDataSize(info.size())));
|
||||
|
||||
ui->createdAtLabel->setText(info.birthTime().toString(tr("yyyy/MM/dd hh:mm:ss", "Qt string format")));
|
||||
ui->lastUpdateLabel->setText(info.lastModified().toString(tr("yyyy/MM/dd hh:mm:ss", "Qt string format")));
|
||||
ui->lastAccessLabel->setText(info.lastRead().toString(tr("yyyy/MM/dd hh:mm:ss", "Qt string format")));
|
||||
ui->createdAtLabel->setText(QLocale().toString(info.birthTime(), QLocale::LongFormat));
|
||||
ui->lastUpdateLabel->setText(QLocale().toString(info.lastModified(), QLocale::LongFormat));
|
||||
ui->lastAccessLabel->setText(QLocale().toString(info.lastRead(), QLocale::LongFormat));
|
||||
|
||||
// ui->formLayout->addRow("Created at:", new QLabel(info.birthTime().toString()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user