c0f19b95d5
This object should not always be created on startup. Instead, only load it specifically when the user wants to load it. This fixes a freeze some users were experiencing due to the text widget. Unfortunately, it is not yet known how that freeze occurred with the log viewer, so for the time being do not load the log viewer object unless explicitly created.
24 lines
380 B
C++
24 lines
380 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QTextEdit>
|
|
#include "obs-app.hpp"
|
|
|
|
class OBSLogViewer : public QDialog {
|
|
Q_OBJECT
|
|
|
|
QPointer<QTextEdit> textArea;
|
|
|
|
void InitLog();
|
|
|
|
private slots:
|
|
void AddLine(int type, const QString &text);
|
|
void ClearText();
|
|
void ToggleShowStartup(bool checked);
|
|
void OpenFile();
|
|
|
|
public:
|
|
OBSLogViewer(QWidget *parent = 0);
|
|
~OBSLogViewer();
|
|
};
|