MCPcopy Create free account
hub / github.com/baldurk/renderdoc / on_buttonBox_accepted

Method on_buttonBox_accepted

qrenderdoc/Windows/Dialogs/VirtualFileDialog.cpp:859–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859void VirtualFileDialog::on_buttonBox_accepted()
860{
861 if(!m_FileProxy->showFiles)
862 {
863 // if browsing for a directory, accept current dir as path
864 m_ChosenPath = m_Model->data(currentDir(), RemoteFileModel::FilePathRole).toString();
865 QDialog::accept();
866 return;
867 }
868
869 // simulate enter being pressed
870 QKeyEvent fakeEvent(QEvent::KeyPress, Qt::Key_Return, 0);
871 on_filename_keyPress(&fakeEvent);
872}
873
874void VirtualFileDialog::on_back_clicked()
875{

Callers

nothing calls this directly

Calls 3

acceptFunction · 0.50
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected