aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
index 377a92d8..64cb4718 100644
--- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
@@ -223,7 +223,7 @@
kOpSS= new QShortcut(QKeySequence(Qt::Key_F6),this);
kOpMM= new QShortcut(QKeySequence(Qt::Key_F7),this);
kOpTerm = new QShortcut(QKeySequence(Qt::Key_F1),this);
- kTreePane= new QShortcut(QKeySequence(Qt::CTRL+Qt::Key_),this);
+// kTreePane = new QShortcut(QKeySequence(Qt::CTRL+Qt::Key_P),this);
connect(kZoomIn, SIGNAL(activated()), this, SLOT(on_tool_zoom_in_clicked()) );
connect(kZoomOut, SIGNAL(activated()), this, SLOT(on_tool_zoom_out_clicked()) );
@@ -754,12 +754,15 @@
// Folder Pane
//====================
- void DirWidget::showFolderPane(){
- //ui->folderViewPane->setVisible(true);
- }
+ void DirWidget::showDirTreePane(bool showdirtree){
+ if(showdirtree !=showHidden){
+ showHidden = showdirtree;
+ if(!currentDir.isEmpty()){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); }
+ }
+ }
- void DirWidget::hideFolderPane(){
- //ui->folderViewPane->setVisible(false);
+ bool DirWidget::showingDirTreePane(){
+ return showHidden;
}
bgstack15