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