aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/Browser.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-09-26 15:03:53 -0400
committerKen Moore <ken@ixsystems.com>2016-09-26 15:03:53 -0400
commitc7bf3bdd2a9781b6a3eee701f61708cad8213c9e (patch)
treebbd171d12cf5ad10d56eadf3a6da5a23fed0a05e /src-qt5/desktop-utils/lumina-fm/Browser.cpp
parentFix a syntax issue with the new i18n option in the FreeBSD makefile. (diff)
downloadlumina-c7bf3bdd2a9781b6a3eee701f61708cad8213c9e.tar.gz
lumina-c7bf3bdd2a9781b6a3eee701f61708cad8213c9e.tar.bz2
lumina-c7bf3bdd2a9781b6a3eee701f61708cad8213c9e.zip
Commit some more work on a new backend/frontend to the lumina-fm browser.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/Browser.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/Browser.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/Browser.cpp b/src-qt5/desktop-utils/lumina-fm/Browser.cpp
index 0aeb5648..b207604c 100644
--- a/src-qt5/desktop-utils/lumina-fm/Browser.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/Browser.cpp
@@ -17,6 +17,8 @@ Browser::~Browser(){
watcher->deleteLater();
}
+QString Browser::currentDirectory(){ return currentDir; }
+
void Browser::showHiddenFiles(bool show){
if(show !=showHidden){
showHidden = show;
@@ -24,7 +26,7 @@ void Browser::showHiddenFiles(bool show){
}
}
bool Browser::showingHiddenFiles(){
-
+ return showHidden;
}
// PRIVATE
@@ -45,12 +47,14 @@ void Browser::loadItem(QFileInfo info){
}
// PRIVATE SLOTS
-void Browser::fileChanged(QString){
-
+void Browser::fileChanged(QString file){
+ if(file.startsWith(currentDir+"/")){ emit itemUpdated(file); }
+ else if(file==currentDir){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); }
}
-void Browser::dirChanged(QString){
-
+void Browser::dirChanged(QString dir){
+ if(dir==currentDir){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); }
+ else if(dir.startsWith(currentDir)){ emit itemUpdated(dir); }
}
// PUBLIC SLOTS
bgstack15