From 946cb4e3e3695fc37dc2ec8cab21f60874c048cb Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 26 Jun 2017 09:47:38 -0400 Subject: 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. --- src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp') 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 -- cgit