diff --git a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp index 2bbdab38423..07fabc3220b 100644 --- a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp +++ b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp @@ -34,18 +34,10 @@ #include #endif -#include - #include #include -static void showAsyncWarning(const QString &title, const QString &desciption) -{ - QMessageBox *messageBox = new QMessageBox(QMessageBox::Warning, title, desciption, QMessageBox::Ok, Core::ICore::dialogParent()); - messageBox->setAttribute(Qt::WA_DeleteOnClose); - messageBox->setModal(true); - messageBox->show(); -} +#include /*! \defgroup CoreExceptions @@ -163,7 +155,7 @@ QString Exception::description() const void Exception::showException(const QString &title) const { QString composedTitle = title.isEmpty() ? QCoreApplication::translate("QmlDesigner", "Error") : title; - showAsyncWarning(composedTitle, description()); + QmlDesignerWarning::show(composedTitle, description()); } /*!