Timeline Memory Test App

Create a simple app that puts a number of events into a simple timeline which can be used to verify future memory optimisations

When Neochat is built with tests on you should find the app at ~/kde/usr/bin/timeline-memtest assuming ~/kde is your kdesrc-build directory
This commit is contained in:
James Graham
2025-01-04 15:29:40 +00:00
parent 09af6fe0a7
commit 41a6dd6175
10 changed files with 874 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
using namespace Quotient;
MessageFilterModel::MessageFilterModel(QObject *parent, TimelineModel *sourceModel)
MessageFilterModel::MessageFilterModel(QObject *parent, QAbstractItemModel *sourceModel)
: QSortFilterProxyModel(parent)
{
Q_ASSERT(sourceModel);

View File

@@ -37,7 +37,7 @@ public:
LastRole, // Keep this last
};
explicit MessageFilterModel(QObject *parent = nullptr, TimelineModel *sourceModel = nullptr);
explicit MessageFilterModel(QObject *parent = nullptr, QAbstractItemModel *sourceModel = nullptr);
/**
* @brief Custom filter function to remove hidden messages.