aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm
diff options
context:
space:
mode:
authorlbartoletti <l.bartoletti@free.fr>2019-10-22 21:35:23 +0200
committerlbartoletti <l.bartoletti@free.fr>2019-10-22 21:35:23 +0200
commit1b89b87b7862c77b1161152dfd700b7bb9ec0527 (patch)
tree219ab9cac366234148df98c0de499a69ac54b69c /src-qt5/desktop-utils/lumina-fm
parentfix setTabStopWidth -> setTabStopDistance (diff)
downloadlumina-1b89b87b7862c77b1161152dfd700b7bb9ec0527.tar.gz
lumina-1b89b87b7862c77b1161152dfd700b7bb9ec0527.tar.bz2
lumina-1b89b87b7862c77b1161152dfd700b7bb9ec0527.zip
fix warning: 'created' is deprecated: Use either birthTime() or metadataChangeTime() final round
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/BrowserModel.cpp2
-rw-r--r--src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserModel.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserModel.cpp
index d79da006..aeb65bae 100644
--- a/src-qt5/desktop-utils/lumina-fm/BrowserModel.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/BrowserModel.cpp
@@ -75,7 +75,7 @@ QVariant BrowserModel::data(const QModelIndex &index, int role) const{
else if(index.column()==1){ return QVariant(info->fileSize()); }
else if(index.column()==2){ return QVariant(info->mimetype()); }
else if(index.column()==3){ return QVariant(info->lastModified()->toString(Qt::DefaultLocaleShortDate)); }
- else if(index.column()==4){ return QVariant(info->created()->toString(Qt::DefaultLocaleShortDate)); }
+ else if(index.column()==4){ return QVariant(info->birthTime()->toString(Qt::DefaultLocaleShortDate)); }
case Qt::ToolTipRole:
return QVariant(info->absoluteFilePath());
case Qt::StatusTipRole:
diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
index 70a89ff1..45f3d3e1 100644
--- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
@@ -405,11 +405,11 @@ void BrowserWidget::itemDataAvailable(const QIcon* ico, LFileInfo *info){
it->setText(1, info->isDir() ? "" : LUtils::BytesToDisplaySize(info->size()) ); //size (1)
it->setText(2, info->mimetype() ); //type (2)
it->setText(3, DTtoString(info->lastModified() )); //modification date (3)
- it->setText(4, DTtoString(info->created()) ); //creation date (4)
+ it->setText(4, DTtoString(info->birthTime()) ); //creation date (4)
//Now all the hidden data
it->setWhatsThis(0, info->absoluteFilePath());
it->setWhatsThis(3, info->lastModified().toString("yyyyMMddhhmmsszzz") ); //sorts by this actually
- it->setWhatsThis(4, info->created().toString("yyyyMMddhhmmsszzz") ); //sorts by this actually
+ it->setWhatsThis(4, info->birthTime().toString("yyyyMMddhhmmsszzz") ); //sorts by this actually
num = treeWidget->topLevelItemCount();
}
if(num < numItems){
bgstack15