| 98 | } |
| 99 | |
| 100 | bool RenderWindow::requestSaveImage() |
| 101 | { |
| 102 | QFileDialog dialog(nullptr, tr("Save Image")); |
| 103 | dialog.setNameFilter(tr("Image files (*.jpg *.png *.bmp *.tga *.hdr)")); |
| 104 | dialog.setFileMode(QFileDialog::AnyFile); |
| 105 | dialog.setAcceptMode(QFileDialog::AcceptSave); |
| 106 | dialog.setDirectory(QDir::currentPath()); |
| 107 | if(dialog.exec()) { |
| 108 | const QString path = dialog.selectedFiles().at(0); |
| 109 | return saveImage(path); |
| 110 | } |
| 111 | return false; |
| 112 | } |
| 113 | |
| 114 | bool RenderWindow::saveImage(const QString &path) |
| 115 | { |
nothing calls this directly
no outgoing calls
no test coverage detected