| 867 | } |
| 868 | |
| 869 | bool |
| 870 | KnobGuiPath::editUserEntry(QStringList& row) |
| 871 | { |
| 872 | std::vector<std::string> filters; |
| 873 | SequenceFileDialog dialog(getGui(), filters, false, SequenceFileDialog::eFileDialogModeDir, row[1].toStdString(), getGui(), true ); |
| 874 | |
| 875 | if ( dialog.exec() ) { |
| 876 | std::string dirPath = dialog.selectedDirectory(); |
| 877 | if ( !dirPath.empty() && (dirPath[dirPath.size() - 1] == '/') ) { |
| 878 | dirPath.erase(dirPath.size() - 1, 1); |
| 879 | } |
| 880 | QString path = QString::fromUtf8( dirPath.c_str() ); |
| 881 | updateLastOpened(path); |
| 882 | row[1] = path; |
| 883 | |
| 884 | return true; |
| 885 | } |
| 886 | |
| 887 | return false; |
| 888 | } |
| 889 | |
| 890 | void |
| 891 | KnobGuiPath::entryRemoved(const QStringList& row) |
nothing calls this directly
no test coverage detected