aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlbartoletti <l.bartoletti@free.fr>2019-10-22 18:49:34 +0200
committerlbartoletti <l.bartoletti@free.fr>2019-10-22 18:49:34 +0200
commitb92c2da361cd75d12ed0d1a41119c2614665f401 (patch)
tree62b5ac638b1f6cdacc6ff06022cd622a38f94809
parentfix warning: 'byteCount' is deprecated: Use sizeInBytes (diff)
downloadlumina-b92c2da361cd75d12ed0d1a41119c2614665f401.tar.gz
lumina-b92c2da361cd75d12ed0d1a41119c2614665f401.tar.bz2
lumina-b92c2da361cd75d12ed0d1a41119c2614665f401.zip
fix warning: 'created' is deprecated: Use either birthTime() or metadataChangeTime()
-rw-r--r--src-qt5/desktop-utils/lumina-fileinfo/MainUI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-fileinfo/MainUI.cpp b/src-qt5/desktop-utils/lumina-fileinfo/MainUI.cpp
index c99a781e..df5b1170 100644
--- a/src-qt5/desktop-utils/lumina-fileinfo/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-fileinfo/MainUI.cpp
@@ -143,7 +143,7 @@ void MainUI::SyncFileInfo(){
}
ui->label_file_owner->setText(INFO->owner());
ui->label_file_group->setText(INFO->group());
- ui->label_file_created->setText( INFO->created().toString(Qt::SystemLocaleLongDate) );
+ ui->label_file_created->setText( INFO->birthTime().toString(Qt::SystemLocaleLongDate) );
ui->label_file_modified->setText( INFO->lastModified().toString(Qt::SystemLocaleLongDate) );
//Get the file permissions
QString perms;
@@ -220,7 +220,7 @@ void MainUI::SyncZfsInfo(){
ui->tree_zfs_snaps->clear();
for(int i=0; i<snaps.length(); i++){
QFileInfo finfo(snaps[i].section("::::",1,-1));
- ui->tree_zfs_snaps->addTopLevelItem( new QTreeWidgetItem(QStringList() << snaps[i].section("::::",0,0) << finfo.created().toString(Qt::SystemLocaleShortDate) << finfo.lastModified().toString(Qt::SystemLocaleShortDate) ) );
+ ui->tree_zfs_snaps->addTopLevelItem( new QTreeWidgetItem(QStringList() << snaps[i].section("::::",0,0) << finfo.birthTime().toString(Qt::SystemLocaleShortDate) << finfo.lastModified().toString(Qt::SystemLocaleShortDate) ) );
ui->tree_zfs_snaps->resizeColumnToContents(0);
}
ui->tree_zfs_snaps->setVisible(!snaps.isEmpty());
bgstack15