Qbs: Start using aspects for some bool items in install step

Change-Id: If5e702ba6cf9727fe209c96988701d76f373a78d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-08-17 10:30:36 +02:00
parent 119994c62d
commit f0d0591015
5 changed files with 73 additions and 176 deletions

View File

@@ -95,6 +95,7 @@ void LayoutBuilder::flushPendingItems()
// If there are more than two items, we cram the last ones in one hbox.
if (m_pendingItems.size() > 2) {
auto hbox = new QHBoxLayout;
hbox->setContentsMargins(0, 0, 0, 0);
for (int i = 1; i < m_pendingItems.size(); ++i) {
if (QWidget *w = m_pendingItems.at(i).widget)
hbox->addWidget(w);