mainwindow: show size of files
This commit is contained in:
parent
5e983049f5
commit
05a5bac22f
@ -184,6 +184,7 @@ void MainWindow::handleSearchResults(const QVector<SearchResult> &results)
|
|||||||
item->setText(0, fileName);
|
item->setText(0, fileName);
|
||||||
item->setText(1, result.fileData.absPath);
|
item->setText(1, result.fileData.absPath);
|
||||||
item->setText(2, dt.toString(Qt::ISODate));
|
item->setText(2, dt.toString(Qt::ISODate));
|
||||||
|
item->setText(3, this->locale().formattedDataSize(result.fileData.size));
|
||||||
if(result.fileData.absPath.endsWith(".pdf"))
|
if(result.fileData.absPath.endsWith(".pdf"))
|
||||||
{
|
{
|
||||||
this->pdfSearchResults.append(result);
|
this->pdfSearchResults.append(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user