| 1719 | } |
| 1720 | |
| 1721 | void |
| 1722 | SequenceFileDialog::pathChanged(const QString &newPath) |
| 1723 | { |
| 1724 | if ( newPath.isEmpty() ) { |
| 1725 | _upButton->setEnabled(false); |
| 1726 | } else { |
| 1727 | _upButton->setEnabled(true); |
| 1728 | } |
| 1729 | |
| 1730 | _favoriteView->selectUrl( QUrl::fromLocalFile(newPath) ); |
| 1731 | setHistory( _lookInCombobox->history() ); |
| 1732 | |
| 1733 | if ( (_currentHistoryLocation < 0) || ( _history.value(_currentHistoryLocation) != QDir::toNativeSeparators(newPath) ) ) { |
| 1734 | while ( _currentHistoryLocation >= 0 && _currentHistoryLocation + 1 < _history.count() ) { |
| 1735 | _history.removeLast(); |
| 1736 | } |
| 1737 | _history.append( QDir::toNativeSeparators(newPath) ); |
| 1738 | ++_currentHistoryLocation; |
| 1739 | } |
| 1740 | _nextButton->setEnabled(_history.size() - _currentHistoryLocation > 1); |
| 1741 | _previousButton->setEnabled(_currentHistoryLocation > 0); |
| 1742 | } |
| 1743 | |
| 1744 | void |
| 1745 | SequenceFileDialog::setHistory(const QStringList &paths) |
nothing calls this directly
no test coverage detected