[qet] qet/qet: [4870] Export Dialog : add the %idx as a prefix to exported file names |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4870
Author: scorpio810
Date: 2017-01-24 18:05:02 +0100 (Tue, 24 Jan 2017)
Log Message:
-----------
Export Dialog : add the %idx as a prefix to exported file names
Modified Paths:
--------------
trunk/sources/exportdialog.cpp
Modified: trunk/sources/exportdialog.cpp
===================================================================
--- trunk/sources/exportdialog.cpp 2017-01-24 08:08:08 UTC (rev 4869)
+++ trunk/sources/exportdialog.cpp 2017-01-24 17:05:02 UTC (rev 4870)
@@ -1024,16 +1024,18 @@
// titre et nom de fichier du schema
QString diagram_title = diagram -> title();
- if (diagram_title.isEmpty()) diagram_title = QObject::tr("Folio sans titre");
+ QString diagram_index = QString::number(diagram -> folioIndex()+1);
+ //QString diagram_folio_label = diagram -> border_and_titleblock.finalfolio();
+ if (diagram_title.isEmpty()) diagram_title = QObject::tr("Folio sans titre");
QString diagram_filename = diagram -> title();
if (diagram_filename.isEmpty()) diagram_filename = QObject::tr("schema");
- diagram_filename = QET::stringToFileName(diagram_filename);
+ diagram_filename = QET::stringToFileName(diagram_index + "_" + diagram_filename);
title_label = new QLabel(diagram_title);
file_name = new QLineEdit();
file_name -> setText(diagram_filename);
- file_name -> setMinimumWidth(180);
+ file_name -> setMinimumWidth(280);
width = new QSpinBox();
width -> setRange(1, 10000);