MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / attachFile

Method attachFile

gui/nbrowserwindow.cpp:1845–1857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1843
1844
1845void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected