[qet] [3752] Re-add help line for diagram editor and element editor

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


Revision: 3752
Author:   blacksun
Date:     2015-02-22 09:26:22 +0100 (Sun, 22 Feb 2015)
Log Message:
-----------
Re-add help line for diagram editor and element editor

Modified Paths:
--------------
    branches/Qt5/sources/dvevent/dveventaddshape.cpp
    branches/Qt5/sources/editor/esevent/eseventinterface.cpp

Modified: branches/Qt5/sources/dvevent/dveventaddshape.cpp
===================================================================
--- branches/Qt5/sources/dvevent/dveventaddshape.cpp	2015-02-22 08:20:48 UTC (rev 3751)
+++ branches/Qt5/sources/dvevent/dveventaddshape.cpp	2015-02-22 08:26:22 UTC (rev 3752)
@@ -196,6 +196,7 @@
 			m_help_horiz = new QGraphicsLineItem(m_diagram -> border_and_titleblock.rowsHeaderWidth() + 5, 0,
 												 m_diagram -> border_and_titleblock.diagramWidth() + 5, 0);
 			m_help_horiz->setPen(pen);
+			m_diagram -> addItem(m_help_horiz);
 		}
 
 		if (!m_help_verti)
@@ -203,6 +204,7 @@
 			m_help_verti = new QGraphicsLineItem(0, m_diagram -> border_and_titleblock.columnsHeaderHeight() + 5,
 												 0, m_diagram -> border_and_titleblock.diagramHeight() + 5);
 			m_help_verti->setPen(pen);
+			m_diagram -> addItem(m_help_verti);
 		}
 	}
 

Modified: branches/Qt5/sources/editor/esevent/eseventinterface.cpp
===================================================================
--- branches/Qt5/sources/editor/esevent/eseventinterface.cpp	2015-02-22 08:20:48 UTC (rev 3751)
+++ branches/Qt5/sources/editor/esevent/eseventinterface.cpp	2015-02-22 08:26:22 UTC (rev 3752)
@@ -111,10 +111,12 @@
 		if (!m_help_horiz) {
 			m_help_horiz = new QGraphicsLineItem(-10000, 0, 10000, 0);
 			m_help_horiz -> setPen(pen);
+			m_scene -> addItem(m_help_horiz);
 		}
 		if (!m_help_verti) {
 			m_help_verti = new QGraphicsLineItem(0, -10000, 0, 10000);
 			m_help_verti -> setPen(pen);
+			m_scene -> addItem(m_help_verti);
 		}
 	}
 


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