forked from qt-creator/qt-creator
rename selectOrDeselectAll to changeCheckStateAll
Change-Id: I78e700734e2b5ec6bad31df71419bbc1a8b1b3c8 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
committed by
Christian Stenger
parent
59a4999de3
commit
19f36ebf78
@@ -243,16 +243,16 @@ TestTreeView::TestTreeView(QWidget *parent)
|
|||||||
|
|
||||||
void TestTreeView::selectAll()
|
void TestTreeView::selectAll()
|
||||||
{
|
{
|
||||||
selectOrDeselectAll(Qt::Checked);
|
changeCheckStateAll(Qt::Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestTreeView::deselectAll()
|
void TestTreeView::deselectAll()
|
||||||
{
|
{
|
||||||
selectOrDeselectAll(Qt::Unchecked);
|
changeCheckStateAll(Qt::Unchecked);
|
||||||
}
|
}
|
||||||
|
|
||||||
// this avoids the re-evaluation of parent nodes when modifying the child nodes (setData())
|
// 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();
|
const TestTreeModel *model = TestTreeModel::instance();
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public:
|
|||||||
void deselectAll();
|
void deselectAll();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void selectOrDeselectAll(const Qt::CheckState checkState);
|
void changeCheckStateAll(const Qt::CheckState checkState);
|
||||||
Core::IContext *m_context;
|
Core::IContext *m_context;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user