diff options
author | Ken Moore <ken@ixsystems.com> | 2016-09-26 15:03:53 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-09-26 15:03:53 -0400 |
commit | c7bf3bdd2a9781b6a3eee701f61708cad8213c9e (patch) | |
tree | bbd171d12cf5ad10d56eadf3a6da5a23fed0a05e /src-qt5/desktop-utils/lumina-fm/Browser.cpp | |
parent | Fix a syntax issue with the new i18n option in the FreeBSD makefile. (diff) | |
download | lumina-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.cpp | 14 |
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 |