Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
dlg_crash_report.h
Go to the documentation of this file.
1
5
6
#ifndef DLG_CRASH_REPORT_H
7
#define DLG_CRASH_REPORT_H
8
9
#include <QDialog>
10
#include <QString>
11
#include <qtmetamacros.h>
12
13
class
QCheckBox;
14
class
QLabel;
15
class
QPlainTextEdit;
16
class
QPushButton;
17
18
class
CrashReporter
;
19
31
class
DlgCrashReport
:
public
QDialog
32
{
33
Q_OBJECT
34
public
:
35
explicit
DlgCrashReport
(QWidget *parent =
nullptr
,
bool
realSending
=
false
,
CrashReporter
*_reporter =
nullptr
);
36
37
static
QString
buildRedactedPreview
();
38
static
QString
writeMockReport
(
const
QString &previewText,
const
QString &userNote = QString());
39
40
void
reject
()
override
;
41
42
protected
:
43
void
changeEvent
(QEvent *event)
override
;
44
45
private
:
46
QLabel *
infoLabel
;
47
QLabel *
accountLabel
;
48
QPlainTextEdit *
previewArea
;
49
QPlainTextEdit *
noteArea
;
50
QCheckBox *
rememberBox
;
51
QPushButton *
sendButton
;
52
QPushButton *
dontSendButton
;
53
bool
realSending
=
false
;
54
CrashReporter
*
reporter
=
nullptr
;
55
56
void
retranslateUi
();
57
58
private
slots:
59
void
actSend
();
60
void
actDontSend
();
61
};
62
63
#endif
CrashReporter
Sentry-backed crash-report facade, owned by main().
Definition
crash_reporter.h:60
DlgCrashReport::buildRedactedPreview
static QString buildRedactedPreview()
Definition
dlg_crash_report.cpp:116
DlgCrashReport::actDontSend
void actDontSend()
Definition
dlg_crash_report.cpp:231
DlgCrashReport::infoLabel
QLabel * infoLabel
Definition
dlg_crash_report.h:46
DlgCrashReport::retranslateUi
void retranslateUi()
Definition
dlg_crash_report.cpp:80
DlgCrashReport::accountLabel
QLabel * accountLabel
Definition
dlg_crash_report.h:47
DlgCrashReport::sendButton
QPushButton * sendButton
Definition
dlg_crash_report.h:51
DlgCrashReport::previewArea
QPlainTextEdit * previewArea
Definition
dlg_crash_report.h:48
DlgCrashReport::DlgCrashReport
DlgCrashReport(QWidget *parent=nullptr, bool realSending=false, CrashReporter *_reporter=nullptr)
Definition
dlg_crash_report.cpp:24
DlgCrashReport::noteArea
QPlainTextEdit * noteArea
Definition
dlg_crash_report.h:49
DlgCrashReport::dontSendButton
QPushButton * dontSendButton
Definition
dlg_crash_report.h:52
DlgCrashReport::rememberBox
QCheckBox * rememberBox
Definition
dlg_crash_report.h:50
DlgCrashReport::realSending
bool realSending
Definition
dlg_crash_report.h:53
DlgCrashReport::actSend
void actSend()
Definition
dlg_crash_report.cpp:168
DlgCrashReport::changeEvent
void changeEvent(QEvent *event) override
Definition
dlg_crash_report.cpp:72
DlgCrashReport::reject
void reject() override
Definition
dlg_crash_report.cpp:236
DlgCrashReport::writeMockReport
static QString writeMockReport(const QString &previewText, const QString &userNote=QString())
Definition
dlg_crash_report.cpp:141
DlgCrashReport::reporter
CrashReporter * reporter
Definition
dlg_crash_report.h:54
cockatrice
src
interface
widgets
dialogs
dlg_crash_report.h
Generated by
1.18.0