Fix build with -no-feature-textedit
Change-Id: I4a75c134803043180c57287ca352e26e3422204c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
2ac7fb78b9
commit
2bbeebf80c
@ -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": {
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user