OxfordDynamics/LIT — Issue #24: Use MVC
Author: john-adamson
Created: 2011-12-16 11:29:18+00:00
State: open

The primary data structure could be all the parsed issues.
The data structure used in the table model could be a containers of pointers
into the primary structure, depending on the chosen filters. Whereas filter
combobox models can use a map of all unique values in a table column to a
collection of pointers to all issues that use that filter value. ie.

struct Issue
{
QUuid ...
// Values.
creation date
last modified date
};

typedef QPointer< Issue > IssuePointer;
typedef QList< IssuePointer > IssuePointerList; // Used by table model.
typedef QMap< QString, IssuePointerList > FilterMap; // Used by filter models.