Commit cf2ede66 authored by Christophe Courtaut's avatar Christophe Courtaut

Do not show header columns. Show drives on windows.

parent d2961988
......@@ -43,7 +43,7 @@ ImportController::ImportController(QWidget *parent) :
m_stackNav = new StackViewController( m_ui->stackViewContainer, false );
m_mediaListController = new ImportMediaListController( m_stackNav );
m_tag = new TagWidget( m_ui->tagContainer, 6 );
m_filesModel = new QDirModel();
m_filesModel = new QFileSystemModel();
m_stackNav->pushViewController( m_mediaListController );
QStringList filters;
......@@ -62,7 +62,7 @@ ImportController::ImportController(QWidget *parent) :
restoreCurrentPath();
m_ui->treeView->setModel( m_filesModel );
m_ui->treeView->setRootIndex( m_filesModel->index( QDir::rootPath() ) );
m_ui->treeView->setHeaderHidden( true );
m_ui->treeView->setCurrentIndex( m_filesModel->index( m_currentlyWatchedDir ) );
m_ui->treeView->setExpanded( m_ui->treeView->currentIndex() , true );
m_ui->treeView->setColumnHidden( 1, true );
......
......@@ -38,7 +38,7 @@
#include "TagWidget.h"
#include <QDialog>
#include <QDirModel>
#include <QFileSystemModel>
#include <QFileSystemWatcher>
namespace Ui
......@@ -73,7 +73,7 @@ class ImportController : public QDialog
TagWidget* m_tag;
ImportMediaListController* m_mediaListController;
ImportMediaListController* m_clipListController;
QDirModel* m_filesModel;
QFileSystemModel* m_filesModel;
QFileSystemWatcher* m_fsWatcher;
QString m_currentlyWatchedDir;
QUuid m_currentUuid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment