User bigger block sizes in logs models
This commit is contained in:
parent
6e5c597eba
commit
65a7247855
@ -36,6 +36,9 @@
|
||||
|
||||
#include "types/logentry.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
Q_DECLARE_LOGGING_CATEGORY(dcLogEngine)
|
||||
|
||||
class Engine;
|
||||
|
||||
class LogsModel : public QAbstractListModel, public QQmlParserStatus
|
||||
@ -64,6 +67,7 @@ public:
|
||||
RoleErrorCode
|
||||
};
|
||||
explicit LogsModel(QObject *parent = nullptr);
|
||||
virtual ~LogsModel() = default;
|
||||
|
||||
Engine* engine() const;
|
||||
void setEngine(Engine* engine);
|
||||
@ -73,7 +77,7 @@ public:
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
bool canFetchMore(const QModelIndex &parent) const override;
|
||||
void fetchMore(const QModelIndex &parent = QModelIndex()) override;
|
||||
virtual void fetchMore(const QModelIndex &parent = QModelIndex()) override;
|
||||
void classBegin() override;
|
||||
void componentComplete() override;
|
||||
|
||||
@ -127,7 +131,7 @@ protected:
|
||||
|
||||
bool m_busy = false;
|
||||
bool m_live = false;
|
||||
int m_blockSize = 100;
|
||||
int m_blockSize = 1000;
|
||||
|
||||
bool m_busyInternal = false;
|
||||
|
||||
|
||||
@ -140,7 +140,7 @@ private:
|
||||
QList<QUuid> m_typeIds;
|
||||
QDateTime m_startTime;
|
||||
QDateTime m_endTime;
|
||||
int m_blockSize = 100;
|
||||
int m_blockSize = 1000;
|
||||
bool m_canFetchMore = true;
|
||||
QDateTime m_viewStartTime;
|
||||
QVariant m_minValue;
|
||||
|
||||
Reference in New Issue
Block a user