|
@ -15,6 +15,19 @@ class LogTableModel : public QAbstractTableModel |
|
|
Q_OBJECT |
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
|
|
|
enum ELogColumn : int |
|
|
|
|
|
{ |
|
|
|
|
|
id, |
|
|
|
|
|
level, |
|
|
|
|
|
timestamp, |
|
|
|
|
|
file, |
|
|
|
|
|
func, |
|
|
|
|
|
lineno, |
|
|
|
|
|
msg, |
|
|
|
|
|
scope, |
|
|
|
|
|
threadId, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
LogTableModel(LogWarehouse_ptr warehouse); |
|
|
LogTableModel(LogWarehouse_ptr warehouse); |
|
|
|
|
|
|
|
|
~LogTableModel() override; |
|
|
~LogTableModel() override; |
|
@ -29,19 +42,6 @@ public: |
|
|
int role = Qt::DisplayRole) const override; |
|
|
int role = Qt::DisplayRole) const override; |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
enum ELogColumn : int |
|
|
|
|
|
{ |
|
|
|
|
|
id, |
|
|
|
|
|
level, |
|
|
|
|
|
timestamp, |
|
|
|
|
|
file, |
|
|
|
|
|
func, |
|
|
|
|
|
lineno, |
|
|
|
|
|
msg, |
|
|
|
|
|
scope, |
|
|
|
|
|
threadId, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
QMap<int, QString> _columnMap; |
|
|
QMap<int, QString> _columnMap; |
|
|
LogWarehouse_ptr _warehouse; |
|
|
LogWarehouse_ptr _warehouse; |
|
|
|
|
|
|
|
|