[qet] qet/qet: [5407] forget files from previous comit

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


Revision: 5407
Author:   blacksun
Date:     2018-06-21 20:02:58 +0200 (Thu, 21 Jun 2018)
Log Message:
-----------
forget files from previous comit

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/qetgraphicsitem.cpp
    trunk/sources/qetgraphicsitem/qetgraphicsitem.h

Modified: trunk/sources/qetgraphicsitem/qetgraphicsitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/qetgraphicsitem.cpp	2018-06-21 17:57:33 UTC (rev 5406)
+++ trunk/sources/qetgraphicsitem/qetgraphicsitem.cpp	2018-06-21 18:02:58 UTC (rev 5407)
@@ -65,6 +65,14 @@
 }
 
 /**
+ * @brief QetGraphicsItem::state
+ * @return the current state of this item 
+ */
+QET::GraphicsItemState QetGraphicsItem::state() const {
+	return m_state;
+}
+
+/**
  * @brief QetGraphicsItem::mousePressEvent
  *handle the mouse click
  * @param e

Modified: trunk/sources/qetgraphicsitem/qetgraphicsitem.h
===================================================================
--- trunk/sources/qetgraphicsitem/qetgraphicsitem.h	2018-06-21 17:57:33 UTC (rev 5406)
+++ trunk/sources/qetgraphicsitem/qetgraphicsitem.h	2018-06-21 18:02:58 UTC (rev 5407)
@@ -19,6 +19,7 @@
 #define QETGRAPHICSITEM_H
 
 #include <QGraphicsObject>
+#include "qet.h"
 
 class Diagram;
 
@@ -41,6 +42,8 @@
 
 		virtual void     editProperty  ()      {}
 		virtual QString  name       ()const {return QString("");}
+		
+		QET::GraphicsItemState state() const;
 
 		//protected method
 	protected:
@@ -54,6 +57,7 @@
 		bool first_move_;
 		bool snap_to_grid_;
 		QPointF mouse_to_origin_movement_;
+		QET::GraphicsItemState m_state = QET:: GIOK;
 
 };
 


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