forked from qt-creator/qt-creator
Use isEmpty() instead of count() or size()
Change-Id: I0a89d2808c6d041da0dc41ea5aea58e6e8759bb4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -92,7 +92,7 @@ void ParallelItem::doLayout(int d)
|
||||
// 3. Relocate children-states
|
||||
// a) sort list
|
||||
QVector<StateItem*> sortedList;
|
||||
while (children.count() > 0) {
|
||||
while (!children.isEmpty()) {
|
||||
qreal minTop = children.first()->boundingRect().top();
|
||||
int minTopIndex = 0;
|
||||
for (int i = 1; i < children.count(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user