Commit c1abef38 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

Gerrit: Allow sorting



Change-Id: I3e84a62b486ea4bde586467fa3e00a453364ae2c
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent e4b3a4b7
......@@ -142,6 +142,7 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
m_treeView->setUniformRowHeights(true);
m_treeView->setRootIsDecorated(false);
m_treeView->setSelectionBehavior(QAbstractItemView::SelectRows);
m_treeView->setSortingEnabled(true);
QItemSelectionModel *selectionModel = m_treeView->selectionModel();
connect(selectionModel, SIGNAL(currentChanged(QModelIndex,QModelIndex)),
......@@ -245,6 +246,7 @@ void GerritDialog::slotRefresh()
const QString &query = m_queryLineEdit->text().trimmed();
updateCompletions(query);
m_model->refresh(query);
m_treeView->sortByColumn(-1);
}
const QStandardItem *GerritDialog::itemAt(const QModelIndex &i, int column) const
......
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