[qet] [4632] Add variable for properties %machine and %locmach

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4632
Author:   scorpio810
Date:     2016-08-17 08:04:37 +0200 (Wed, 17 Aug 2016)
Log Message:
-----------
Add variable for properties %machine and %locmach
can now be called in the xref propertie widget (run now for slave and
master)

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/crossrefitem.cpp
    trunk/sources/ui/xrefpropertieswidget.ui

Modified: trunk/sources/qetgraphicsitem/crossrefitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/crossrefitem.cpp	2016-08-17 05:04:41 UTC (rev 4631)
+++ trunk/sources/qetgraphicsitem/crossrefitem.cpp	2016-08-17 06:04:37 UTC (rev 4632)
@@ -95,6 +95,8 @@
 	txt = xrp.masterLabel();
 	txt.replace("%f", QString::number(elmt->diagram()->folioIndex()+1));
 	txt.replace("%F", elmt->diagram() -> border_and_titleblock.folio());
+	txt.replace("%M", elmt->diagram() -> border_and_titleblock.machine());
+	txt.replace("%LM", elmt->diagram() -> border_and_titleblock.locmach());
 	txt.replace("%c", QString::number(elmt->diagram() -> convertPosition(elmt -> scenePos()).number()));
 	txt.replace("%l", elmt->diagram() -> convertPosition(elmt -> scenePos()).letter());
 

Modified: trunk/sources/ui/xrefpropertieswidget.ui
===================================================================
--- trunk/sources/ui/xrefpropertieswidget.ui	2016-08-17 05:04:41 UTC (rev 4631)
+++ trunk/sources/ui/xrefpropertieswidget.ui	2016-08-17 06:04:37 UTC (rev 4632)
@@ -200,8 +200,8 @@
 %F: le label de folio
 %l : le numéro de ligne
 %c : le numéro de colonne
-%M: Installation (esclave seulement)
-%LM: localisation (esclave seulement)</string>
+%M: Installation 
+%LM: Localisation </string>
              </property>
             </widget>
            </item>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/