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
......@@ -167,9 +167,12 @@ void Stats_window::on_export_button_clicked(){
// We get the times
_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"),
QString(),
path_by_default,
tr("Images (*.svg)"));
if (filename.isEmpty()) {
......
Markdown is supported
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