Skip to content
Snippets Groups Projects
Commit e2266628 authored by Langella Olivier's avatar Langella Olivier
Browse files

display file dialog to save protein list

parent b1b737a6
No related branches found
No related tags found
No related merge requests found
......@@ -477,8 +477,18 @@ void
ProteinListWindow::doExportAsOdsFile()
{
qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__;
QSettings settings;
QString default_location = settings.value("path/export_ods", "").toString();
QString filename;
filename = QFileDialog::getSaveFileName(
this,
tr("Save ODS file"),
QString("%1/untitled.ods").arg(default_location),
tr("Open Document Spreadsheet (*.ods)"));
CalcWriterInterface *p_writer = new OdsDocWriter("/tmp/test.ods");
CalcWriterInterface *p_writer = new OdsDocWriter(filename);
const QAbstractProxyModel *p_table_model = _p_proxy_model;
QtableWriter table_writer(p_writer, p_table_model);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment