forget files from previous comit

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5407 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-06-21 18:02:58 +00:00
parent 749e0e5e78
commit 4cdd17e21f
2 changed files with 12 additions and 0 deletions

View File

@@ -64,6 +64,14 @@ void QetGraphicsItem::setPos(qreal x, qreal y) {
setPos(QPointF(x, y));
}
/**
* @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

View File

@@ -19,6 +19,7 @@
#define QETGRAPHICSITEM_H
#include <QGraphicsObject>
#include "qet.h"
class Diagram;
@@ -41,6 +42,8 @@ class QetGraphicsItem : public QGraphicsObject
virtual void editProperty () {}
virtual QString name ()const {return QString("");}
QET::GraphicsItemState state() const;
//protected method
protected:
@@ -54,6 +57,7 @@ class QetGraphicsItem : public QGraphicsObject
bool first_move_;
bool snap_to_grid_;
QPointF mouse_to_origin_movement_;
QET::GraphicsItemState m_state = QET:: GIOK;
};