Fix build with -no-feature-textedit

Change-Id: I4a75c134803043180c57287ca352e26e3422204c
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Paul Olav Tvete 2017-01-25 10:10:07 +01:00
parent 2ac7fb78b9
commit 2bbeebf80c
2 changed files with 5 additions and 1 deletions

View File

@ -435,7 +435,7 @@
"label": "QInputDialog",
"purpose": "Provides a simple convenience dialog to get a single value from the user.",
"section": "Dialogs",
"condition": "features.combobox && features.spinbox && features.stackedwidget",
"condition": "features.combobox && features.spinbox && features.stackedwidget && features.textedit",
"output": [ "publicFeature", "feature" ]
},
"errormessage": {

View File

@ -336,8 +336,10 @@ void QMessageBoxPrivate::setupLayout()
#else
grid->addWidget(buttonBox, grid->rowCount(), 0, 1, grid->columnCount());
#endif
#if QT_CONFIG(textedit)
if (detailsText)
grid->addWidget(detailsText, grid->rowCount(), 0, 1, grid->columnCount());
#endif
grid->setSizeConstraint(QLayout::SetNoConstraint);
q->setLayout(grid);
@ -2654,7 +2656,9 @@ void QMessageBoxPrivate::helperPrepareShow(QPlatformDialogHelper *)
options->setWindowTitle(q->windowTitle());
options->setText(q->text());
options->setInformativeText(q->informativeText());
#if QT_CONFIG(textedit)
options->setDetailedText(q->detailedText());
#endif
options->setIcon(helperIcon(q->icon()));
options->setStandardButtons(helperStandardButtons(q));
}