mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Nomenclature export : add coil and protection query
This commit is contained in:
@@ -475,6 +475,10 @@ QString BOMExportDialog::queryStr() const
|
|||||||
where = " WHERE element_subtype = 'commutator'";
|
where = " WHERE element_subtype = 'commutator'";
|
||||||
} else if (ui->m_terminal_rb->isChecked()) {
|
} else if (ui->m_terminal_rb->isChecked()) {
|
||||||
where = " WHERE element_type = 'Terminale'";
|
where = " WHERE element_type = 'Terminale'";
|
||||||
|
} else if (ui->m_coil_rb->isChecked()) {
|
||||||
|
where = " WHERE element_subtype = 'coil'";
|
||||||
|
} else if (ui->m_protection_rb ->isChecked()) {
|
||||||
|
where = " WHERE element_subtype = 'protection'";
|
||||||
}
|
}
|
||||||
QString where_bom;
|
QString where_bom;
|
||||||
if(ui->m_format_as_bom_rb->isChecked())
|
if(ui->m_format_as_bom_rb->isChecked())
|
||||||
|
|||||||
@@ -220,6 +220,20 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="m_coil_rb">
|
||||||
|
<property name="text">
|
||||||
|
<string>Contacteur et relais</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="m_protection_rb">
|
||||||
|
<property name="text">
|
||||||
|
<string> Protection : disjoncteur, sectionneur, relais thermique</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user