mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-28 13:49:58 +01:00
Revert 3344
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3345 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -46,12 +46,8 @@ nomenclature::~nomenclature() {
|
||||
@param true if success
|
||||
*/
|
||||
bool nomenclature::saveToCSVFile() {
|
||||
if(m_list_diagram.isEmpty())
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText("Le titre du projet est vide, veuillez le remplir.");
|
||||
msgBox.exec();
|
||||
return false;
|
||||
|
||||
if(m_list_diagram.isEmpty()) return false;
|
||||
|
||||
//Process...
|
||||
QString data = tr("NOMENCLATURE : ") + m_project -> title() + "\n\n";
|
||||
data += tr("Folio") +";"+ tr("Sch\351ma") +";"+ tr("D\351signation")+";"+ tr("Label") +";"+ tr("Commententaire") +";"+ tr("Fabriquant") +";"+ tr("Reference") +";"+ tr("Machine-reference\n");
|
||||
@@ -62,7 +58,7 @@ bool nomenclature::saveToCSVFile() {
|
||||
data += rows.at(j);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// SAVE IN FILE
|
||||
QString name = tr("nomenclature_") + QString(m_project -> title());
|
||||
QString filename = QFileDialog::getSaveFileName(this->m_parent, tr("Enregister sous... "), name, tr("Fichiers csv (*.csv)"));
|
||||
|
||||
Reference in New Issue
Block a user