fix weird behavior when zooming at the same time of création of shape item

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4251 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-11-07 12:28:43 +00:00
parent dcf9011c43
commit 70398a2773
6 changed files with 114 additions and 81 deletions

View File

@@ -18,6 +18,8 @@
#ifndef DIAGRAMEVENTINTERFACE_H
#define DIAGRAMEVENTINTERFACE_H
#include <QObject>
class QGraphicsSceneMouseEvent;
class QGraphicsSceneWheelEvent;
class QKeyEvent;
@@ -45,8 +47,10 @@ class Diagram;
* the bool m_abort is here for that at destruction time.
*
*/
class DiagramEventInterface
class DiagramEventInterface : public QObject
{
Q_OBJECT
public:
DiagramEventInterface(Diagram *diagram);
virtual ~DiagramEventInterface() = 0;
@@ -61,6 +65,9 @@ class DiagramEventInterface
virtual bool isFinish () const;
virtual void init();
signals:
void finish(); //Emited when the interface finish is job.
protected:
Diagram *m_diagram;
bool m_running;