diff options
author | q5sys <jt@obs-sec.com> | 2017-06-13 12:37:41 -0400 |
---|---|---|
committer | q5sys <jt@obs-sec.com> | 2017-06-13 12:37:41 -0400 |
commit | 3dfc37ec6be3e1cf08c5953df66703ccc49413b1 (patch) | |
tree | a256bea8b0e8e17455de2eb521c652a5c1c011db /src-qt5/desktop-utils/lumina-fm/MainUI.cpp | |
parent | add dirtreepane prototype code (diff) | |
download | lumina-3dfc37ec6be3e1cf08c5953df66703ccc49413b1.tar.gz lumina-3dfc37ec6be3e1cf08c5953df66703ccc49413b1.tar.bz2 lumina-3dfc37ec6be3e1cf08c5953df66703ccc49413b1.zip |
redo dirtreepane to work the same as other options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/MainUI.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/MainUI.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp index 9962a4bf..0de89b2e 100644 --- a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp @@ -181,6 +181,7 @@ void MainUI::OpenDirs(QStringList dirs){ DW->setThumbnailSize(settings->value("iconsize", 32).toInt()); DW->showHidden( ui->actionView_Hidden_Files->isChecked() ); DW->showThumbnails( ui->actionShow_Thumbnails->isChecked() ); + DW->showHidden( ui->actionView_showDirTreePane->isChecked() ); //Now load the directory DW->ChangeDir(dirs[i]); //kick off loading the directory info } @@ -254,6 +255,8 @@ void MainUI::setupConnections(){ connect(nextTabRShort, SIGNAL(activated()), this, SLOT( nextTab() ) ); connect(togglehiddenfilesShort, SIGNAL(activated()), this, SLOT( togglehiddenfiles() ) ); connect(focusDirWidgetShort, SIGNAL(activated()), this, SLOT( focusDirWidget() ) ); + connect(toggledirtreepanelShort, SIGNAL(activated()), this, SLOT( toggleDirTreePane() ) ); + } void MainUI::focusDirWidget() @@ -270,6 +273,14 @@ void MainUI::togglehiddenfiles() on_actionView_Hidden_Files_triggered(); } +void MainUI::toggleDirTreePane() +{ + //change setChecked to inverse value + ui->actionView_Hidden_Files->setChecked( !settings->value("showhidden", true).toBool() ); + // then trigger function + on_showDirTreePane_triggered(); +} + void MainUI::loadSettings(){ //Note: make sure this is run after all the UI elements are created and connected to slots // but before the first directory gets loaded |