Minor change according to the evolution of Qt class (remove QGraphicsScene from constructor of QGraphicsItem).

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3547 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-12-14 13:06:21 +00:00
parent 62fa93ea1b
commit 5e935a976e
34 changed files with 158 additions and 148 deletions

View File

@@ -22,7 +22,6 @@
#include "qetgraphicsitem.h"
#include "diagramcontext.h"
class Diagram;
class ElementTextItem;
class QETProject;
class Terminal;
@@ -31,29 +30,28 @@ class Conductor;
/**
This is the base class for electrical elements.
*/
class Element : public QetGraphicsItem {
class Element : public QetGraphicsItem {
Q_OBJECT
// constructors, destructor
// constructors, destructor
public:
Element(QGraphicsItem * = 0, Diagram * = 0);
virtual ~Element();
Element(QGraphicsItem * = 0);
virtual ~Element();
private:
Element(const Element &);
Element(const Element &);
// attributes
// attributes
public:
enum { Type = UserType + 1000 };
// this enum is use to know the kind of element and
// to use flag for element provider class
enum kind {Simple = 1,
NextReport = 2,
PreviousReport = 4,
AllReport = 6,
Master = 8,
Slave = 16,
Terminale = 32};
enum { Type = UserType + 1000 };
// this enum is use to know the kind of element and
// to use flag for element provider class
enum kind {Simple = 1,
NextReport = 2,
PreviousReport = 4,
AllReport = 6,
Master = 8,
Slave = 16,
Terminale = 32};
private:
QSize dimensions;