rename selectOrDeselectAll to changeCheckStateAll

Change-Id: I78e700734e2b5ec6bad31df71419bbc1a8b1b3c8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Tim Jenssen
2014-12-18 12:48:18 +01:00
committed by Christian Stenger
parent 59a4999de3
commit 19f36ebf78
2 changed files with 4 additions and 4 deletions

View File

@@ -243,16 +243,16 @@ TestTreeView::TestTreeView(QWidget *parent)
void TestTreeView::selectAll()
{
selectOrDeselectAll(Qt::Checked);
changeCheckStateAll(Qt::Checked);
}
void TestTreeView::deselectAll()
{
selectOrDeselectAll(Qt::Unchecked);
changeCheckStateAll(Qt::Unchecked);
}
// this avoids the re-evaluation of parent nodes when modifying the child nodes (setData())
void TestTreeView::selectOrDeselectAll(const Qt::CheckState checkState)
void TestTreeView::changeCheckStateAll(const Qt::CheckState checkState)
{
const TestTreeModel *model = TestTreeModel::instance();