diff --git a/UI/CMakeLists.txt b/UI/CMakeLists.txt index 1d49ab0ba..59c8735c7 100644 --- a/UI/CMakeLists.txt +++ b/UI/CMakeLists.txt @@ -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 diff --git a/UI/crash-report.cpp b/UI/crash-report.cpp deleted file mode 100644 index e423f8d11..000000000 --- a/UI/crash-report.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include "crash-report.hpp" -#include -#include -#include -#include -#include -#include -#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()); -} diff --git a/UI/crash-report.hpp b/UI/crash-report.hpp deleted file mode 100644 index ae53e93fe..000000000 --- a/UI/crash-report.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -#include - -class OBSPlainTextEdit; - -class OBSCrashReport : public QDialog { - Q_OBJECT - - OBSPlainTextEdit *textBox; - -public: - OBSCrashReport(QWidget *parent, const char *text); - -public slots: - void ExitClicked(); - void CopyClicked(); -}; diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 9d018e88e..b9544bff1 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -47,7 +47,6 @@ #include "window-permissions.hpp" #endif #include "window-basic-settings.hpp" -#include "crash-report.hpp" #include "platform.hpp" #include