MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / saveState

Method saveState

Gui/SequenceFileDialog.cpp:641–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639}
640
641QByteArray
642SequenceFileDialog::saveState() const
643{
644 QByteArray data;
645 QDataStream stream(&data, QIODevice::WriteOnly);
646
647 QList<QUrl> urls;
648 std::vector<QUrl> stdUrls = _favoriteView->urls();
649 for (unsigned int i = 0; i < stdUrls.size(); ++i) {
650 urls.push_back(stdUrls[i]);
651 }
652 stream << _centerSplitter->saveState();
653 stream << urls;
654 stream << history();
655 stream << currentDirectory().path();
656 stream << _view->header()->saveState();
657 stream << _relativeChoice->itemText( _relativeChoice->activeIndex() );
658 stream << _sequenceButton->activeIndex();
659
660 return data;
661}
662
663bool
664SequenceFileDialog::restoreState(const QByteArray & state,

Callers

nothing calls this directly

Calls 7

headerMethod · 0.80
itemTextMethod · 0.80
urlsMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
pathMethod · 0.45
activeIndexMethod · 0.45

Tested by

no test coverage detected