[qet] [4548] Minor: minimum XRef offset corrected.

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


Revision: 4548
Author:   dfochi
Date:     2016-06-07 19:24:33 +0200 (Tue, 07 Jun 2016)
Log Message:
-----------
Minor: minimum XRef offset corrected. Assign variables to XRef link menu

Modified Paths:
--------------
    trunk/sources/projectconfigpages.cpp
    trunk/sources/qetgraphicsitem/qgraphicsitemutility.cpp
    trunk/sources/ui/elementselectorwidget.cpp

Modified: trunk/sources/projectconfigpages.cpp
===================================================================
--- trunk/sources/projectconfigpages.cpp	2016-06-07 17:01:59 UTC (rev 4547)
+++ trunk/sources/projectconfigpages.cpp	2016-06-07 17:24:33 UTC (rev 4548)
@@ -459,7 +459,6 @@
 		emit (saveCurrentTbp());
 		emit (setAutoNum(m_faw->autoNumSelected()));
 		while (foliosRemaining > 0){
-					qDebug() << foliosRemaining;
 			project()->autoFolioNumberingNewFolios();
 			foliosRemaining = foliosRemaining-1;
 		}

Modified: trunk/sources/qetgraphicsitem/qgraphicsitemutility.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/qgraphicsitemutility.cpp	2016-06-07 17:01:59 UTC (rev 4547)
+++ trunk/sources/qetgraphicsitem/qgraphicsitemutility.cpp	2016-06-07 17:24:33 UTC (rev 4548)
@@ -57,7 +57,7 @@
 	QRectF  border = element_to_follow -> diagram() -> border_and_titleblock.insideBorderRect();
 	QPointF point  = element_to_follow -> sceneBoundingRect().center();
 
-	if (offset >= 50) //applies offset
+	if (offset >= 40) //applies offset
 	point.setY(border.bottom() - offset );
 	else //applies default
 	point.setY(border.bottom() - item_to_center -> boundingRect().height() - 5);

Modified: trunk/sources/ui/elementselectorwidget.cpp
===================================================================
--- trunk/sources/ui/elementselectorwidget.cpp	2016-06-07 17:01:59 UTC (rev 4547)
+++ trunk/sources/ui/elementselectorwidget.cpp	2016-06-07 17:24:33 UTC (rev 4548)
@@ -134,13 +134,13 @@
 			DiagramContext dc = elmt -> elementInformations();
 
 			if (!dc["label"].toString().isEmpty())
-				button_text = dc["label"].toString() + " ";
+				button_text = elmt->assignVariables(dc["label"].toString(), elmt) + " ";
 
 			if (!dc["comment"].toString().isEmpty())
-				button_text += dc["comment"].toString();
+				button_text += elmt->assignVariables(dc["comment"].toString(), elmt);
 
 			if (!dc["location"].toString().isEmpty())
-				button_text += dc["location"].toString();
+				button_text += elmt->assignVariables(dc["location"].toString(), elmt);
 
 			if (!button_text.isEmpty())
 				button_text += "\n";


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