[qet] [3927] Cross ref : add commutator/button as new type of master |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3927
Author: blacksun
Date: 2015-04-29 17:33:21 +0200 (Wed, 29 Apr 2015)
Log Message:
-----------
Cross ref : add commutator/button as new type of master
Modified Paths:
--------------
trunk/sources/editor/ui/elementpropertieseditorwidget.cpp
trunk/sources/properties/xrefproperties.cpp
trunk/sources/ui/xrefpropertieswidget.cpp
Modified: trunk/sources/editor/ui/elementpropertieseditorwidget.cpp
===================================================================
--- trunk/sources/editor/ui/elementpropertieseditorwidget.cpp 2015-04-29 15:32:22 UTC (rev 3926)
+++ trunk/sources/editor/ui/elementpropertieseditorwidget.cpp 2015-04-29 15:33:21 UTC (rev 3927)
@@ -89,6 +89,7 @@
//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"));
}
/**
Modified: trunk/sources/properties/xrefproperties.cpp
===================================================================
--- trunk/sources/properties/xrefproperties.cpp 2015-04-29 15:32:22 UTC (rev 3926)
+++ trunk/sources/properties/xrefproperties.cpp 2015-04-29 15:33:21 UTC (rev 3927)
@@ -106,7 +106,7 @@
QHash<QString, XRefProperties> XRefProperties::defaultProperties() {
QHash <QString, XRefProperties> hash;
QStringList keys;
- keys << "coil" << "protection";
+ keys << "coil" << "protection" << "commutator";
foreach (QString key, keys) {
XRefProperties properties;
Modified: trunk/sources/ui/xrefpropertieswidget.cpp
===================================================================
--- trunk/sources/ui/xrefpropertieswidget.cpp 2015-04-29 15:32:22 UTC (rev 3926)
+++ trunk/sources/ui/xrefpropertieswidget.cpp 2015-04-29 15:33:21 UTC (rev 3927)
@@ -87,11 +87,15 @@
* @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();
}