Files
DataStructureProject/logwindow.h
T
2017-12-24 15:45:45 +08:00

33 lines
532 B
C++

#ifndef LOGWINDOW_H
#define LOGWINDOW_H
#include <QWidget>
#include <QTextEdit>
#define Log LogWindow
namespace Ui {
class LogWindow;
}
class LogWindow : public QWidget
{
Q_OBJECT
public:
~LogWindow();
static LogWindow* getInstance();
static LogWindow* newInstance(QWidget* parent);
static void i(QString text);
// static void i(char* text);
private:
static LogWindow* m_instance;
explicit LogWindow(QWidget *parent = 0);
Ui::LogWindow *ui;
QTextEdit * text;
};
#endif // LOGWINDOW_H