mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-18 08:09:58 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user