mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
CSV export : fix some missing informations.
This commit is contained in:
@@ -104,8 +104,8 @@ void BOMExportDialog::setUpItems()
|
||||
for(QString key : QETApp::elementInfoKeys())
|
||||
{
|
||||
auto item = new QListWidgetItem(QETApp::elementTranslatedInfoKey(key), ui->m_var_list);
|
||||
item->setData(Qt::UserRole+1, key); //We store the real key before replace "-" by "_" to easily retrieve it in the element information
|
||||
item->setData(Qt::UserRole, key.replace("-", "_")); //We must to replace "-" by "_" because "-" is a sql keyword.
|
||||
item->setData(Qt::UserRole+1, key); //But we store the real key for easily retrieve it in the element information
|
||||
}
|
||||
QStringList other_keys({"pos", "folio_title", "folio_pos", "folio_num", "designation_qty"});
|
||||
QStringList other_translated({tr("Position"), tr("Titre du folio"), tr("Position de folio"), tr("Numéro de folio"), tr("Quantité (Numéro d'article)")});
|
||||
@@ -421,7 +421,7 @@ QHash<QString, QString> BOMExportDialog::elementInfoToString(Element *elmt) cons
|
||||
hash.insert(key, QString::number(elmt->diagram()->folioIndex() + 1));
|
||||
}
|
||||
else if (key == "folio_num") {
|
||||
hash.insert(key, elmt->diagram()->border_and_titleblock.folio());
|
||||
hash.insert(key, elmt->diagram()->border_and_titleblock.finalfolio());
|
||||
}
|
||||
else if (key == "designation_qty") {
|
||||
hash.insert(key, key);
|
||||
|
||||
Reference in New Issue
Block a user