mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Cross ref : add commutator/button as new type of master
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3927 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
57b7026b8e
commit
0aa162a245
@ -89,6 +89,7 @@ void ElementPropertiesEditorWidget::setUpInterface() {
|
||||
//Master option
|
||||
ui -> m_master_type_cb -> addItem(tr("Bobine"), QVariant("coil"));
|
||||
ui -> m_master_type_cb -> addItem(tr("Organe de protection"), QVariant("protection"));
|
||||
ui -> m_master_type_cb -> addItem(tr("Commutateur / bouton"), QVariant("commutator"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -106,7 +106,7 @@ void XRefProperties::fromXml(const QDomElement &xml_element) {
|
||||
QHash<QString, XRefProperties> XRefProperties::defaultProperties() {
|
||||
QHash <QString, XRefProperties> hash;
|
||||
QStringList keys;
|
||||
keys << "coil" << "protection";
|
||||
keys << "coil" << "protection" << "commutator";
|
||||
|
||||
foreach (QString key, keys) {
|
||||
XRefProperties properties;
|
||||
|
@ -87,11 +87,15 @@ void XRefPropertiesWidget::setReadOnly(bool ro) {
|
||||
* @brief XRefPropertiesWidget::buildUi
|
||||
* Build some widget of this ui.
|
||||
*/
|
||||
void XRefPropertiesWidget::buildUi() {
|
||||
void XRefPropertiesWidget::buildUi()
|
||||
{
|
||||
ui -> m_type_cb -> addItem(tr("Bobine"), "coil");
|
||||
ui -> m_type_cb -> addItem(tr("Organe de protection"), "protection");
|
||||
ui -> m_type_cb -> addItem(tr("Commutateur / bouton"), "commutator");
|
||||
|
||||
ui -> m_snap_to_cb -> addItem(tr("En bas de page"), "bottom");
|
||||
ui -> m_snap_to_cb -> addItem(tr("Sous le label de l'élément"), "label");
|
||||
|
||||
m_previous_type_index = ui -> m_type_cb -> currentIndex();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user