Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
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
13class QCheckBox;
14class QLabel;
15class QPlainTextEdit;
16class QPushButton;
17
18class CrashReporter;
19
31class DlgCrashReport : public QDialog
32{
33 Q_OBJECT
34public:
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
42protected:
43 void changeEvent(QEvent *event) override;
44
45private:
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;
55
56 void retranslateUi();
57
58private slots:
59 void actSend();
60 void actDontSend();
61};
62
63#endif
Sentry-backed crash-report facade, owned by main().
Definition crash_reporter.h:60
static QString buildRedactedPreview()
Definition dlg_crash_report.cpp:116
void actDontSend()
Definition dlg_crash_report.cpp:231
QLabel * infoLabel
Definition dlg_crash_report.h:46
void retranslateUi()
Definition dlg_crash_report.cpp:80
QLabel * accountLabel
Definition dlg_crash_report.h:47
QPushButton * sendButton
Definition dlg_crash_report.h:51
QPlainTextEdit * previewArea
Definition dlg_crash_report.h:48
DlgCrashReport(QWidget *parent=nullptr, bool realSending=false, CrashReporter *_reporter=nullptr)
Definition dlg_crash_report.cpp:24
QPlainTextEdit * noteArea
Definition dlg_crash_report.h:49
QPushButton * dontSendButton
Definition dlg_crash_report.h:52
QCheckBox * rememberBox
Definition dlg_crash_report.h:50
bool realSending
Definition dlg_crash_report.h:53
void actSend()
Definition dlg_crash_report.cpp:168
void changeEvent(QEvent *event) override
Definition dlg_crash_report.cpp:72
void reject() override
Definition dlg_crash_report.cpp:236
static QString writeMockReport(const QString &previewText, const QString &userNote=QString())
Definition dlg_crash_report.cpp:141
CrashReporter * reporter
Definition dlg_crash_report.h:54