aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-26 09:47:38 -0400
committerKen Moore <ken@ixsystems.com>2017-06-26 09:47:38 -0400
commit946cb4e3e3695fc37dc2ec8cab21f60874c048cb (patch)
treeb59bed33101b493dbabb70bbb4b7edd79794c153 /src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
parentLarge amount of whitespace cleanup, and almost get the LuminaRandR class fini... (diff)
downloadlumina-946cb4e3e3695fc37dc2ec8cab21f60874c048cb.tar.gz
lumina-946cb4e3e3695fc37dc2ec8cab21f60874c048cb.tar.bz2
lumina-946cb4e3e3695fc37dc2ec8cab21f60874c048cb.zip
Finish up all the new TreeWidget stuff from JT:
1. Save/load the size of the tree widget between sessions (sync size across all tabs as well). 2. Sync the tree widget with the browser with regards to whether hidden files should be shown or not. 3. Tie the tree widget "dir model" to the line edit so we get auto-completions again. 4. Make sure the tree widget shows the "normalized" directory path (does not show ZFS snapshot dirs and such). 5. Clean up a lot of debugging messages and comment out unused variable declarations. 6. Change the Browser thumbnail loading/scaling routine to always run based on image resolution rather than file size.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
index b2ebd476..ec35d521 100644
--- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
@@ -39,7 +39,7 @@ BrowserWidget::~BrowserWidget(){
void BrowserWidget::changeDirectory(QString dir){
if(BROWSER->currentDirectory()==dir){ return; } //already on this directory
- qDebug() << "Change Directory:" << dir << historyList;
+ //qDebug() << "Change Directory:" << dir << historyList;
if( !dir.contains("/.zfs/snapshot/") ){
if(historyList.isEmpty() || !dir.isEmpty()){ historyList << dir; }
@@ -49,7 +49,7 @@ void BrowserWidget::changeDirectory(QString dir){
cleaned = cleaned.replace( QRegExp("/\\.zfs/snapshot/(.)+/"), "/" );
if( (historyList.isEmpty() || historyList.last()!=cleaned) && !cleaned.isEmpty() ){ historyList << cleaned; }
}
- qDebug() << "History:" << historyList;
+ //qDebug() << "History:" << historyList;
emit dirChange(dir);
}
@@ -364,7 +364,7 @@ void BrowserWidget::itemDataAvailable(QIcon ico, LFileInfo *info){
}
void BrowserWidget::itemsLoading(int total){
- qDebug() << "Got number of items loading:" << total;
+ //qDebug() << "Got number of items loading:" << total;
if(listWidget!=0){ listWidget->setWhatsThis( BROWSER->currentDirectory() ); }
if(treeWidget!=0){ treeWidget->setWhatsThis(BROWSER->currentDirectory() ); }
numItems = total; //save this for later
bgstack15