mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
UI: Remove unused Qt crash reporter code
The crash reporter made with Qt was introduced in824c7b0, but then was quickly replaced by a native OS implementation ind42a7ce. This code has been lying around ever since.
This commit is contained in:
@@ -134,8 +134,6 @@ target_sources(
|
||||
api-interface.cpp
|
||||
auth-base.cpp
|
||||
auth-base.hpp
|
||||
crash-report.cpp
|
||||
crash-report.hpp
|
||||
display-helpers.hpp
|
||||
platform.hpp
|
||||
qt-display.cpp
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
#include "crash-report.hpp"
|
||||
#include <QApplication>
|
||||
#include <QFontDatabase>
|
||||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QClipboard>
|
||||
#include "qt-wrappers.hpp"
|
||||
#include "plain-text-edit.hpp"
|
||||
|
||||
OBSCrashReport::OBSCrashReport(QWidget *parent, const char *text)
|
||||
: QDialog(parent)
|
||||
{
|
||||
QPushButton *copyButton = new QPushButton;
|
||||
copyButton->setText("Copy crash log");
|
||||
|
||||
QPushButton *exitButton = new QPushButton;
|
||||
exitButton->setText("Exit");
|
||||
|
||||
textBox = new OBSPlainTextEdit;
|
||||
textBox->setPlainText(QT_UTF8(text));
|
||||
textBox->setLineWrapMode(QPlainTextEdit::NoWrap);
|
||||
|
||||
QHBoxLayout *buttonLayout = new QHBoxLayout;
|
||||
buttonLayout->addWidget(copyButton);
|
||||
buttonLayout->addWidget(exitButton);
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addWidget(textBox);
|
||||
mainLayout->addItem(buttonLayout);
|
||||
|
||||
setLayout(mainLayout);
|
||||
|
||||
QWidget::connect(copyButton, SIGNAL(clicked()), this,
|
||||
SLOT(CopyClicked()));
|
||||
QWidget::connect(exitButton, SIGNAL(clicked()), this,
|
||||
SLOT(ExitClicked()));
|
||||
|
||||
resize(800, 600);
|
||||
setWindowTitle("Oops, OBS has crashed!");
|
||||
}
|
||||
|
||||
void OBSCrashReport::ExitClicked()
|
||||
{
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
void OBSCrashReport::CopyClicked()
|
||||
{
|
||||
QApplication::clipboard()->setText(textBox->toPlainText());
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
class OBSPlainTextEdit;
|
||||
|
||||
class OBSCrashReport : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
OBSPlainTextEdit *textBox;
|
||||
|
||||
public:
|
||||
OBSCrashReport(QWidget *parent, const char *text);
|
||||
|
||||
public slots:
|
||||
void ExitClicked();
|
||||
void CopyClicked();
|
||||
};
|
||||
@@ -47,7 +47,6 @@
|
||||
#include "window-permissions.hpp"
|
||||
#endif
|
||||
#include "window-basic-settings.hpp"
|
||||
#include "crash-report.hpp"
|
||||
#include "platform.hpp"
|
||||
|
||||
#include <fstream>
|
||||
|
||||
Reference in New Issue
Block a user