mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
It's file for precompiled headers. Include what is used, don't rely on transitive includes.
25 lines
782 B
C++
25 lines
782 B
C++
#include "fatal_error_dialog.h"
|
|
|
|
#include <QLayout>
|
|
#include <QTextDocument>
|
|
|
|
#include <string>
|
|
|
|
fatal_error_dialog::fatal_error_dialog(const std::string& text) : QMessageBox()
|
|
{
|
|
setWindowTitle(tr("RPCS3: Fatal Error"));
|
|
setIcon(QMessageBox::Icon::Critical);
|
|
setTextFormat(Qt::TextFormat::RichText);
|
|
setText(QString(R"(
|
|
<p style="white-space: nowrap;">
|
|
%1<br>
|
|
%2<br>
|
|
<a href='https://github.com/RPCS3/rpcs3/wiki/How-to-ask-for-Support'>https://github.com/RPCS3/rpcs3/wiki/How-to-ask-for-Support</a><br>
|
|
%3<br>
|
|
</p>
|
|
)")
|
|
.arg(Qt::convertFromPlainText(QString::fromStdString(text)))
|
|
.arg(tr("HOW TO REPORT ERRORS:"))
|
|
.arg(tr("Please, don't send incorrect reports. Thanks for understanding.")));
|
|
layout()->setSizeConstraint(QLayout::SetFixedSize);
|
|
}
|