| 639 | } |
| 640 | |
| 641 | QByteArray |
| 642 | SequenceFileDialog::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 | |
| 663 | bool |
| 664 | SequenceFileDialog::restoreState(const QByteArray & state, |