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

Method doubleClickOpen

Gui/SequenceFileDialog.cpp:1866–1880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1864}
1865
1866void
1867SequenceFileDialog::doubleClickOpen(const QModelIndex & /*index*/)
1868{
1869 QModelIndexList indexes = _view->selectionModel()->selectedRows();
1870
1871 for (int i = 0; i < indexes.count(); ++i) {
1872 QModelIndex sourceIndex = indexes[i];
1873 if ( _model->isDir( sourceIndex ) ) {
1874 _selectionLineEdit->setText( sourceIndex.data(FileSystemModel::FilePathRole).toString() + QLatin1Char('/') );
1875 break;
1876 }
1877 }
1878
1879 openSelectedFiles();
1880}
1881
1882void
1883SequenceFileDialog::seekUrl(const QUrl & url)

Callers

nothing calls this directly

Calls 4

isDirMethod · 0.80
countMethod · 0.45
setTextMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected