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