Commit 4ad436a1 authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

User manual ended (to be corrected?)

Proposition of style for the docs.
The export stats window have a name for the file by default.
parent 27316248
......@@ -168,8 +168,11 @@ void Stats_window::on_export_button_clicked(){
_start_time = _start_time_widget->text().toDouble();
_end_time = _end_time_widget->text().toDouble();
const string &path = _core->get_filename();
const QString path_by_default = QString(path.substr(0, path.find_last_of('.')).c_str()) + ".svg";
QString filename = QFileDialog::getSaveFileName(this, tr("Export File"),
tr("Images (*.svg)"));
if (filename.isEmpty()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment