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

Method pathChanged

Gui/SequenceFileDialog.cpp:1721–1742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1719}
1720
1721void
1722SequenceFileDialog::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
1744void
1745SequenceFileDialog::setHistory(const QStringList &paths)

Callers

nothing calls this directly

Calls 9

toNativeSeparatorsFunction · 0.85
selectUrlMethod · 0.80
appendMethod · 0.80
isEmptyMethod · 0.45
setEnabledMethod · 0.45
historyMethod · 0.45
valueMethod · 0.45
countMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected