[AppletQuickItem] Break from loop when we found a layout
There's no point in going on once we found a layout. REVIEW: 128851
This commit is contained in:
parent
53ad186abc
commit
dd5d07afec
@ -87,6 +87,7 @@ void AppletQuickItemPrivate::connectLayoutAttached(QObject *item)
|
||||
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
|
||||
) {
|
||||
layout = child;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -115,6 +116,7 @@ void AppletQuickItemPrivate::connectLayoutAttached(QObject *item)
|
||||
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
|
||||
) {
|
||||
ownLayout = child;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user