MCPcopy Create free account
hub / github.com/MrKepzie/Natron / updateView

Method updateView

Gui/SequenceFileDialog.cpp:1084–1097  ·  view source on GitHub ↗

This function is called when a directory has successfully been loaded (i.e when the filesystem finished to load thoroughly the directory requested)*/

Source from the content-addressed store, hash-verified

1082/*This function is called when a directory has successfully been loaded (i.e
1083 when the filesystem finished to load thoroughly the directory requested)*/
1084void
1085SequenceFileDialog::updateView(const QString &directory)
1086{
1087 boost::shared_ptr<FileSystemItem> directoryItem = _model->getFileSystemItem(directory);
1088
1089 assert(directoryItem);
1090
1091 QModelIndex index = _model->index( directoryItem.get() );
1092 /*update the view to show the newly loaded directory*/
1093 setRootIndex(index);
1094
1095 /*clearselection*/
1096 _view->selectionModel()->clear();
1097}
1098
1099bool
1100SequenceFileDialog::sequenceModeEnabled() const

Callers

nothing calls this directly

Calls 4

getFileSystemItemMethod · 0.80
indexMethod · 0.45
getMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected