Attach to Core: Sort by file name

Files and directories are interleaved, but it's better than no sorting at all

Change-Id: I1852fad1feb9de7fb589d00822429184a25aa8d4
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Orgad Shaneh
2012-10-10 20:15:27 +02:00
committed by hjk
parent 2910233e52
commit e13bbe4e35

View File

@@ -123,6 +123,7 @@ SelectRemoteFileDialog::SelectRemoteFileDialog(QWidget *parent)
m_fileSystemView = new QTreeView(this);
m_fileSystemView->setModel(&m_model);
m_fileSystemView->setSortingEnabled(true);
m_fileSystemView->sortByColumn(1, Qt::AscendingOrder);
m_fileSystemView->setUniformRowHeights(true);
m_fileSystemView->setSelectionMode(QAbstractItemView::SingleSelection);
m_fileSystemView->setSelectionBehavior(QAbstractItemView::SelectRows);