aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/Browser.cpp2
-rw-r--r--src-qt5/desktop-utils/lumina-fm/BrowserModel.cpp2
-rw-r--r--src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp6
-rw-r--r--src-qt5/desktop-utils/lumina-fm/ScrollDialog.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/Browser.cpp b/src-qt5/desktop-utils/lumina-fm/Browser.cpp
index 26d95faa..6974208a 100644
--- a/src-qt5/desktop-utils/lumina-fm/Browser.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/Browser.cpp
@@ -210,7 +210,7 @@ void Browser::loadDirectory(QString dir, bool force){
watcher->addPath(directory.absoluteFilePath(files[i]));
QString path = directory.absoluteFilePath(files[i]);
oldFiles << path; //add to list for next time
- bool reloaditem = !dirupdate || lastcheck.isNull() || (QFileInfo(path).lastModified() > lastcheck || QFileInfo(path).created() > lastcheck);
+ bool reloaditem = !dirupdate || lastcheck.isNull() || (QFileInfo(path).lastModified() > lastcheck || QFileInfo(path).birthTime() > lastcheck);
//if(dirupdate){ qDebug() << "Reload Item:" << reloaditem << path.section("/",-1); }
//reloaditem = true;
if(old.contains(path)){ old.removeAll(path); } //still in existance
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 65dbdb16..45f3d3e1 100644
--- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
@@ -103,7 +103,7 @@ void BrowserWidget::showDetails(bool show){
connect(treeWidget, SIGNAL(sortColumnChanged(int)), this, SIGNAL(setTreeWidgetSortColumn(int, bool)) );
retranslate();
treeWidget->sortItems(treeSortColumn, Qt::AscendingOrder);
- treeWidget->setColumnWidth(0, treeWidget->fontMetrics().width("W")*20);
+ treeWidget->setColumnWidth(0, treeWidget->fontMetrics().horizontalAdvance("W")*20);
if(!BROWSER->currentDirectory().isEmpty()){ emit dirChange("", true); }
}else if(!show && listWidget==0){
listWidget = new DDListWidget(this);
@@ -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){
diff --git a/src-qt5/desktop-utils/lumina-fm/ScrollDialog.h b/src-qt5/desktop-utils/lumina-fm/ScrollDialog.h
index eefe62f4..27f40c24 100644
--- a/src-qt5/desktop-utils/lumina-fm/ScrollDialog.h
+++ b/src-qt5/desktop-utils/lumina-fm/ScrollDialog.h
@@ -48,7 +48,7 @@ public:
void setText(QString txt){
label->setPlainText(txt);
- //this->resize( label->fontMetrics().width(txt.section("\n",0,0))+30, this->height());
+ //this->resize( label->fontMetrics().horizontalAdvance(txt.section("\n",0,0))+30, this->height());
}
};
bgstack15