Fix build with -no-feature-messagebox
Change-Id: I4c34f6aa2106afc528f182d7925442acf82b7000 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 1613975d954f0d88ca8cdde59b34c13d72e9d140) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
2f96d72f4d
commit
d72d38daf7
@ -322,7 +322,7 @@ void QPrintPropertiesDialog::reject()
|
||||
|
||||
void QPrintPropertiesDialog::accept()
|
||||
{
|
||||
#if QT_CONFIG(cups)
|
||||
#if QT_CONFIG(cups) && QT_CONFIG(messagebox)
|
||||
if (widget.pageSetup->hasPpdConflict()) {
|
||||
widget.tabs->setCurrentWidget(widget.tabPage);
|
||||
const QMessageBox::StandardButton answer = QMessageBox::warning(this, tr("Page Setup Conflicts"),
|
||||
@ -990,7 +990,7 @@ int QPrintDialog::exec()
|
||||
void QPrintDialog::accept()
|
||||
{
|
||||
Q_D(QPrintDialog);
|
||||
#if QT_CONFIG(cups)
|
||||
#if QT_CONFIG(cups) && QT_CONFIG(messagebox)
|
||||
if (d->options.pagesRadioButton->isChecked() && printer()->pageRanges().isEmpty()) {
|
||||
QMessageBox::critical(this, tr("Invalid Pages Definition"),
|
||||
tr("%1 does not follow the correct syntax. Please use ',' to separate "
|
||||
|
@ -84,8 +84,10 @@ QAccessibleInterface *qAccessibleFactory(const QString &classname, QObject *obje
|
||||
#endif
|
||||
} else if (classname == "QDialog"_L1) {
|
||||
iface = new QAccessibleWidget(widget, QAccessible::Dialog);
|
||||
#if QT_CONFIG(messagebox)
|
||||
} else if (classname == "QMessageBox"_L1) {
|
||||
iface = new QAccessibleMessageBox(widget);
|
||||
#endif
|
||||
#if QT_CONFIG(mainwindow)
|
||||
} else if (classname == "QMainWindow"_L1) {
|
||||
iface = new QAccessibleMainWindow(widget);
|
||||
|
@ -43,7 +43,9 @@
|
||||
#ifndef QT_NO_PICTURE
|
||||
#include <QtGui/qpicture.h>
|
||||
#endif
|
||||
#if QT_CONFIG(messagebox)
|
||||
#include <qmessagebox.h>
|
||||
#endif
|
||||
#include <qdialogbuttonbox.h>
|
||||
#include <qstyle.h>
|
||||
#include <qstyleoption.h>
|
||||
@ -953,6 +955,7 @@ QWindowContainer *QAccessibleWindowContainer::container() const
|
||||
return static_cast<QWindowContainer *>(widget());
|
||||
}
|
||||
|
||||
#if QT_CONFIG(messagebox)
|
||||
/*!
|
||||
\internal
|
||||
Implements QAccessibleWidget for QMessageBox
|
||||
@ -993,6 +996,7 @@ QString QAccessibleMessageBox::text(QAccessible::Text t) const
|
||||
|
||||
return str;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // QT_CONFIG(accessibility)
|
||||
|
||||
|
@ -190,6 +190,7 @@ private:
|
||||
QWindowContainer *container() const;
|
||||
};
|
||||
|
||||
#if QT_CONFIG(messagebox)
|
||||
class QAccessibleMessageBox : public QAccessibleWidget
|
||||
{
|
||||
public:
|
||||
@ -199,6 +200,7 @@ public:
|
||||
|
||||
QMessageBox *messageBox() const;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // QT_CONFIG(accessibility)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user