-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathlogwindow.h
More file actions
38 lines (31 loc) · 770 Bytes
/
logwindow.h
File metadata and controls
38 lines (31 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef LOGWINDOW_H
#define LOGWINDOW_H
#include <QDialog>
#include <qstandarditemmodel.h>
#include <qscrollbar.h>
#include <QTime>
#include <qdebug.h>
#include <qfile.h>
#include <qfiledialog.h>
#include <qmessagebox.h>
namespace Ui {
class LogWindow;
}
class LogWindow : public QDialog
{
Q_OBJECT
public:
explicit LogWindow(QWidget *parent = nullptr);
~LogWindow();
void addLog(char attr,const QString &tag,const QString &msg,qulonglong time,const QString &func);
void clearLog();
private slots:
void on_bt_clear_clicked();
void on_bt_export_clicked();
private:
Ui::LogWindow *ui;
QStandardItemModel *tableModel;//表格数据
void drawTableHeader();
bool exportCSV(const QString &filename);
};
#endif // LOGWINDOW_H