| 1705 | } |
| 1706 | |
| 1707 | void |
| 1708 | SequenceFileDialog::pathChanged(const QString &newPath) |
| 1709 | { |
| 1710 | if ( newPath.isEmpty() ) { |
| 1711 | _upButton->setEnabled(false); |
| 1712 | } else { |
| 1713 | _upButton->setEnabled(true); |
| 1714 | } |
| 1715 | |
| 1716 | _favoriteView->selectUrl( QUrl::fromLocalFile(newPath) ); |
| 1717 | setHistory( _lookInCombobox->history() ); |
| 1718 | |
| 1719 | if ( (_currentHistoryLocation < 0) || ( _history.value(_currentHistoryLocation) != QDir::toNativeSeparators(newPath) ) ) { |
| 1720 | while ( _currentHistoryLocation >= 0 && _currentHistoryLocation + 1 < _history.count() ) { |
| 1721 | _history.removeLast(); |
| 1722 | } |
| 1723 | _history.append( QDir::toNativeSeparators(newPath) ); |
| 1724 | ++_currentHistoryLocation; |
| 1725 | } |
| 1726 | _nextButton->setEnabled(_history.size() - _currentHistoryLocation > 1); |
| 1727 | _previousButton->setEnabled(_currentHistoryLocation > 0); |
| 1728 | } |
| 1729 | |
| 1730 | void |
| 1731 | SequenceFileDialog::setHistory(const QStringList &paths) |
nothing calls this directly
no test coverage detected