AutoTest: More separation of test tree item and model

Change-Id: Icb096a1af749e74a3f47bc5235a4c0f0c2ce6023
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-04-28 16:42:14 +02:00
parent b9e941105d
commit 0496473c55
5 changed files with 105 additions and 75 deletions

View File

@@ -200,11 +200,11 @@ void TestNavigationWidget::onSortClicked()
if (m_sortAlphabetically) {
m_sort->setIcon(Icons::SORT_ALPHABETICALLY.icon());
m_sort->setToolTip(tr("Sort Alphabetically"));
m_sortFilterModel->setSortMode(TestTreeSortFilterModel::Naturally);
m_sortFilterModel->setSortMode(TestTreeItem::Naturally);
} else {
m_sort->setIcon(Icons::SORT_NATURALLY.icon());
m_sort->setToolTip(tr("Sort Naturally"));
m_sortFilterModel->setSortMode(TestTreeSortFilterModel::Alphabetically);
m_sortFilterModel->setSortMode(TestTreeItem::Alphabetically);
}
m_sortAlphabetically = !m_sortAlphabetically;
}