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

Method selectedDirectory

Gui/SequenceFileDialog.cpp:1832–1854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1830}
1831
1832std::string
1833SequenceFileDialog::selectedDirectory() const
1834{
1835 std::string path = _requestedDir.toStdString();
1836
1837 if (_relativePathsAllowed) {
1838 std::string pathName, pathValue;
1839 bool relative = getRelativeChoiceProjectPath(pathName, pathValue);
1840 if (relative) {
1841 Project::makeRelativeToVariable(pathName, pathValue, path);
1842 }
1843 }
1844
1845
1846#ifdef __NATRON_WIN32__
1847 if (appPTR->getCurrentSettings()->isDriveLetterToUNCPathConversionEnabled()) {
1848 QString ret = FileSystemModel::mapPathWithDriveLetterToPathWithNetworkShareName( QString::fromUtf8( path.c_str() ) );
1849 path = ret.toStdString();
1850 }
1851#endif
1852
1853 return path;
1854}
1855
1856QModelIndex
1857SequenceFileDialog::select(const QModelIndex & index)

Callers 4

addNewUserEntryMethod · 0.80
editUserEntryMethod · 0.80
getDirectoryDialogMethod · 0.80

Calls 3

toStdStringMethod · 0.80
getCurrentSettingsMethod · 0.80

Tested by

no test coverage detected