Commit Graph
7 Commits
Author SHA1 Message Date
Khushboo Mehta 9c48362c5b fix: This fixes the crash in ObjectProxy Model when the QML Context
becomes invalid
2025-12-05 14:58:16 +01:00
Alex Jbanca 8a6632b94e perf(LeftJoinModel): Add LRU cache for right model data access
The right model data access is expensive because we need to search the right model for a matching key on every `data` call. This commit adds a LRU cache to the `data` call, storing by default up to 1000 rows.

The cache mechanism uses a QCache for fast index lookup and a std::list to preserve the access order and to ensure a controlled cache removal.

+ fix compilation errors on ConcatModel and WritableProxyModel
2025-08-15 16:17:16 +03:00
Michał Cieślak e0ca6ee482 LeftJoinModel re-init and reset on sources reset
The LJM had incorrect handling of source models (left/right) reset.
2025-07-07 15:26:39 +02:00
Michał Cieślak 3e2454d8a7 WritableProxyModel: layout change handling fixed 2025-07-04 11:35:47 +02:00
Michał Cieślak 109fbd4225 LeftJoinModel improvements
- proper handling of source models reset (left and right)
- removed QQmlParserStatus inheritance
- emiting model reset only if needed to simplify upstream models
  initialization
2025-07-04 11:35:47 +02:00
Michał Cieślak dc138d1c8a add -Wall -Wextra and releated fixes 2025-06-19 02:46:16 +02:00
Michał Cieślak 777b05cc98 initial commit 2025-06-13 16:25:14 +02:00