Update FileView.cpp
This commit is contained in:
parent
65fd7833bd
commit
4fc9291b01
|
@ -20,6 +20,7 @@ CFileView::CFileView(QWidget *parent)
|
||||||
m_pFileModel = new QFileSystemModel(this);
|
m_pFileModel = new QFileSystemModel(this);
|
||||||
m_pFileModel->setFilter(QDir::NoDotAndDotDot | QDir::AllDirs | QDir::Files | QDir::Hidden | QDir::System);
|
m_pFileModel->setFilter(QDir::NoDotAndDotDot | QDir::AllDirs | QDir::Files | QDir::Hidden | QDir::System);
|
||||||
m_pTreeView->setModel(m_pFileModel);
|
m_pTreeView->setModel(m_pFileModel);
|
||||||
|
m_pTreeView->setSortingEnabled(true);
|
||||||
m_pTreeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
m_pTreeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
|
|
||||||
QStyle* pStyle = QStyleFactory::create("windows");
|
QStyle* pStyle = QStyleFactory::create("windows");
|
||||||
|
|
Loading…
Reference in New Issue