| 1843 | |
| 1844 | |
| 1845 | void NBrowserWindow::attachFile() { |
| 1846 | QFileDialog fileDialog; |
| 1847 | if (attachFilePath != "") |
| 1848 | fileDialog.setDirectory(attachFilePath); |
| 1849 | else |
| 1850 | fileDialog.setDirectory(QDir::homePath()); |
| 1851 | fileDialog.setFileMode(QFileDialog::ExistingFiles); |
| 1852 | //connect(&fileDialog, SIGNAL(fileSelected(QString)), this, SLOT(attachFileSelected(QString))); |
| 1853 | //fileDialog.exec(); |
| 1854 | QStringList list = fileDialog.getOpenFileNames(); |
| 1855 | for (int i=0; i<list.size(); i++) |
| 1856 | attachFileSelected(list[i]); |
| 1857 | } |
| 1858 | |
| 1859 | |
| 1860 |
nothing calls this directly
no outgoing calls
no test coverage detected