Problem solved - more or less, but it isn't very clean.
- QT 4.3.2 fixes a bug with the FilterProxyModels which meant that selected files wouldn't appear in the line editor.
- Since files don't pass through QSortFilterProxyModel::filterAcceptsRow in any predictable order, a list of files seen in each sequence is required to ensure only the one 'standin file' is accepted for each sequence.
- The FileSystemModel doesn't support DisplayRoles (changing the text for the DisplayRole would be the neat way of getting the name of the sequence to display instead of the standin file) - a very ugly workaround was to create a displayDelegate and override displayText to draw the sequence name rather than the standin. Annoyingly, this approach means the sequence name can't be longer than the name of the standin.
- A queued signal connection from changedSelection is required to display (via selectFile) the sequence name rather than the standin file when it's clicked.
Not nice, not pretty, but it works.
Bookmarks