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.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
index 64cb4718..a2adc94f 100644
--- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
@@ -70,7 +70,6 @@
dirtreeModel->setFilter(QDir::NoDotAndDotDot | QDir::AllDirs); // remove extraneous dirs
dirtreeModel->setRootPath(folderTreePath);
//ui->folderViewPane->setModel(dirtreeModel)
- //ui->folderViewPane->setVisible(false); // set hidden initially to preserve legacy appearance of lumina-fm
//Now update the rest of the UI
canmodify = false; //initial value
@@ -139,6 +138,21 @@
ui->tool_zoom_out->setEnabled(px >16); //lower limit on image sizes
}
+ //====================
+ // Folder Pane
+ //====================
+
+ void DirWidget::showDirTreePane(bool show){
+ if(show !=showdirtree){
+ showdirtree = show;
+ }
+ }
+
+ bool DirWidget::showingDirTreePane(){
+ return showdirtree;
+ }
+
+
// ================
// PUBLIC SLOTS
// ================
@@ -223,7 +237,6 @@
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_P),this);
connect(kZoomIn, SIGNAL(activated()), this, SLOT(on_tool_zoom_in_clicked()) );
connect(kZoomOut, SIGNAL(activated()), this, SLOT(on_tool_zoom_out_clicked()) );
@@ -750,21 +763,6 @@
if(!list.isEmpty()){ emit PlayFiles(list); }
}
- //====================
- // Folder Pane
- //====================
-
- void DirWidget::showDirTreePane(bool showdirtree){
- if(showdirtree !=showHidden){
- showHidden = showdirtree;
- if(!currentDir.isEmpty()){ QTimer::singleShot(0, this, SLOT(loadDirectory()) ); }
- }
- }
-
- bool DirWidget::showingDirTreePane(){
- return showHidden;
- }
-
//====================
// PROTECTED
bgstack15