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",
|
"label": "QInputDialog",
|
||||||
"purpose": "Provides a simple convenience dialog to get a single value from the user.",
|
"purpose": "Provides a simple convenience dialog to get a single value from the user.",
|
||||||
"section": "Dialogs",
|
"section": "Dialogs",
|
||||||
"condition": "features.combobox && features.spinbox && features.stackedwidget",
|
"condition": "features.combobox && features.spinbox && features.stackedwidget && features.textedit",
|
||||||
"output": [ "publicFeature", "feature" ]
|
"output": [ "publicFeature", "feature" ]
|
||||||
},
|
},
|
||||||
"errormessage": {
|
"errormessage": {
|
||||||
|
@ -336,8 +336,10 @@ void QMessageBoxPrivate::setupLayout()
|
|||||||
#else
|
#else
|
||||||
grid->addWidget(buttonBox, grid->rowCount(), 0, 1, grid->columnCount());
|
grid->addWidget(buttonBox, grid->rowCount(), 0, 1, grid->columnCount());
|
||||||
#endif
|
#endif
|
||||||
|
#if QT_CONFIG(textedit)
|
||||||
if (detailsText)
|
if (detailsText)
|
||||||
grid->addWidget(detailsText, grid->rowCount(), 0, 1, grid->columnCount());
|
grid->addWidget(detailsText, grid->rowCount(), 0, 1, grid->columnCount());
|
||||||
|
#endif
|
||||||
grid->setSizeConstraint(QLayout::SetNoConstraint);
|
grid->setSizeConstraint(QLayout::SetNoConstraint);
|
||||||
q->setLayout(grid);
|
q->setLayout(grid);
|
||||||
|
|
||||||
@ -2654,7 +2656,9 @@ void QMessageBoxPrivate::helperPrepareShow(QPlatformDialogHelper *)
|
|||||||
options->setWindowTitle(q->windowTitle());
|
options->setWindowTitle(q->windowTitle());
|
||||||
options->setText(q->text());
|
options->setText(q->text());
|
||||||
options->setInformativeText(q->informativeText());
|
options->setInformativeText(q->informativeText());
|
||||||
|
#if QT_CONFIG(textedit)
|
||||||
options->setDetailedText(q->detailedText());
|
options->setDetailedText(q->detailedText());
|
||||||
|
#endif
|
||||||
options->setIcon(helperIcon(q->icon()));
|
options->setIcon(helperIcon(q->icon()));
|
||||||
options->setStandardButtons(helperStandardButtons(q));
|
options->setStandardButtons(helperStandardButtons(q));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user