qBittorrent
StacktraceDialog Class Reference

#include <stacktracedialog.h>

Inheritance diagram for StacktraceDialog:
Collaboration diagram for StacktraceDialog:

Public Member Functions

 StacktraceDialog (QWidget *parent=nullptr)
 
 ~StacktraceDialog () override
 
void setStacktraceString (const QString &sigName, const QString &trace)
 

Private Attributes

Ui::StacktraceDialog * m_ui
 

Detailed Description

Definition at line 39 of file stacktracedialog.h.

Constructor & Destructor Documentation

◆ StacktraceDialog()

StacktraceDialog::StacktraceDialog ( QWidget *  parent = nullptr)
explicit

Definition at line 38 of file stacktracedialog.cpp.

39  : QDialog(parent)
40  , m_ui(new Ui::StacktraceDialog)
41 {
42  m_ui->setupUi(this);
43 }
Ui::StacktraceDialog * m_ui

References m_ui.

◆ ~StacktraceDialog()

StacktraceDialog::~StacktraceDialog ( )
override

Definition at line 45 of file stacktracedialog.cpp.

46 {
47  delete m_ui;
48 }

References m_ui.

Member Function Documentation

◆ setStacktraceString()

void StacktraceDialog::setStacktraceString ( const QString &  sigName,
const QString &  trace 
)

Definition at line 50 of file stacktracedialog.cpp.

51 {
52  // try to call Qt function as less as possible
53  const QString htmlStr = QString(
54  "<p align=center><b><font size=7 color=red>"
55  "qBittorrent has crashed"
56  "</font></b></p>"
57  "<font size=4><p>"
58  "Please file a bug report at "
59  "<a href=\"http://bugs.qbittorrent.org\">http://bugs.qbittorrent.org</a> "
60  "and provide the following information:"
61  "</p></font>"
62  "<br/><hr><br/>"
63  "<p align=center><font size=4>"
64  "qBittorrent version: " QBT_VERSION " (%1-bit)<br/>"
65  "Libtorrent version: %2<br/>"
66  "Qt version: " QT_VERSION_STR "<br/>"
67  "Boost version: %3<br/>"
68  "OpenSSL version: %4<br/>"
69  "zlib version: %5<br/>"
70  "OS version: %6<br/><br/>"
71  "Caught signal: %7"
72  "</font></p>"
73  "<pre><code>%8</code></pre>"
74  "<br/><hr><br/><br/>")
75  .arg(QString::number(QT_POINTER_SIZE * 8)
81  , sigName
82  , trace);
83 
84  m_ui->errorText->setHtml(htmlStr);
85 }
QString osName()
Definition: misc.cpp:466
QString libtorrentVersionString()
Definition: misc.cpp:487
QString opensslVersionString()
Definition: misc.cpp:494
QString boostVersionString()
Definition: misc.cpp:477
QString zlibVersionString()
Definition: misc.cpp:504

References Utils::Misc::boostVersionString(), Utils::Misc::libtorrentVersionString(), m_ui, Utils::Misc::opensslVersionString(), Utils::Misc::osName(), and Utils::Misc::zlibVersionString().

Here is the call graph for this function:

Member Data Documentation

◆ m_ui

Ui::StacktraceDialog* StacktraceDialog::m_ui
private

Definition at line 51 of file stacktracedialog.h.

Referenced by setStacktraceString(), StacktraceDialog(), and ~StacktraceDialog().


The documentation for this class was generated from the following files: