forked from qt-creator/qt-creator
Core: Inline systemsettings.ui
And convert text to QLabel for "Grid" layout too. Change-Id: I50488462f8795337a2cd59fc88bb9834d988912d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -265,6 +265,8 @@ static void doLayoutHelper(QLayout *layout,
|
||||
gridLayout->addWidget(widget, currentGridRow, currentGridColumn, 1, item.span, align);
|
||||
else if (item.layout)
|
||||
gridLayout->addLayout(item.layout, currentGridRow, currentGridColumn, 1, item.span, align);
|
||||
else if (!item.text.isEmpty())
|
||||
gridLayout->addWidget(new QLabel(item.text));
|
||||
currentGridColumn += item.span;
|
||||
} else if (boxLayout) {
|
||||
addItemToBoxLayout(boxLayout, item);
|
||||
|
||||
Reference in New Issue
Block a user