forked from qt-creator/qt-creator
GenericProject: Small readability improvement
Change-Id: If1ffe9c92f8f54ffd321b5ac2bf37b2b7ebf6544 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -156,7 +156,7 @@ void SelectableFilesModel::buildTree(const Utils::FileName &baseDir, Tree *tree,
|
|||||||
Tree *t = new Tree;
|
Tree *t = new Tree;
|
||||||
t->parent = tree;
|
t->parent = tree;
|
||||||
t->name = fileInfo.fileName();
|
t->name = fileInfo.fileName();
|
||||||
t->checked = m_allFiles || m_files.contains(fn) ? Qt::Checked : Qt::Unchecked;
|
t->checked = (m_allFiles || m_files.contains(fn)) ? Qt::Checked : Qt::Unchecked;
|
||||||
t->fullPath = fn;
|
t->fullPath = fn;
|
||||||
t->isDir = false;
|
t->isDir = false;
|
||||||
allChecked &= t->checked == Qt::Checked;
|
allChecked &= t->checked == Qt::Checked;
|
||||||
|
Reference in New Issue
Block a user