mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4682 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -26,7 +26,6 @@
|
|||||||
*/
|
*/
|
||||||
PartTerminal::PartTerminal(QETElementEditor *editor, QGraphicsItem *parent) :
|
PartTerminal::PartTerminal(QETElementEditor *editor, QGraphicsItem *parent) :
|
||||||
CustomElementGraphicPart(editor, parent),
|
CustomElementGraphicPart(editor, parent),
|
||||||
m_tagg("none"),
|
|
||||||
m_orientation(Qet::North)
|
m_orientation(Qet::North)
|
||||||
{
|
{
|
||||||
updateSecondPoint();
|
updateSecondPoint();
|
||||||
@@ -65,7 +64,7 @@ const QDomElement PartTerminal::toXml(QDomDocument &xml_document) const {
|
|||||||
// ecrit la position de la borne
|
// ecrit la position de la borne
|
||||||
xml_element.setAttribute("x", QString("%1").arg(scenePos().x()));
|
xml_element.setAttribute("x", QString("%1").arg(scenePos().x()));
|
||||||
xml_element.setAttribute("y", QString("%1").arg(scenePos().y()));
|
xml_element.setAttribute("y", QString("%1").arg(scenePos().y()));
|
||||||
xml_element.setAttribute("tagg", m_tagg);
|
|
||||||
|
|
||||||
// ecrit l'orientation de la borne
|
// ecrit l'orientation de la borne
|
||||||
xml_element.setAttribute("orientation", Qet::orientationToString(m_orientation));
|
xml_element.setAttribute("orientation", Qet::orientationToString(m_orientation));
|
||||||
|
|||||||
@@ -19,9 +19,8 @@
|
|||||||
#define PART_TERMINAL_H
|
#define PART_TERMINAL_H
|
||||||
|
|
||||||
#include "customelementgraphicpart.h"
|
#include "customelementgraphicpart.h"
|
||||||
#include "customelementpart.h"
|
|
||||||
class TextFieldEditor;
|
|
||||||
class QETElementEditor;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This class represents a terminal which may be used to compose the drawing of
|
This class represents a terminal which may be used to compose the drawing of
|
||||||
@@ -33,11 +32,7 @@ class PartTerminal : public CustomElementGraphicPart
|
|||||||
|
|
||||||
Q_PROPERTY(Qet::Orientation orientation READ orientation WRITE setOrientation)
|
Q_PROPERTY(Qet::Orientation orientation READ orientation WRITE setOrientation)
|
||||||
|
|
||||||
// tagg of text
|
|
||||||
Q_PROPERTY(QString tagg READ tagg WRITE setTagg)
|
|
||||||
QString tagg() const {return m_tagg;}
|
|
||||||
void setTagg(const QString &tagg) {m_tagg = tagg;}
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// constructors, destructor
|
// constructors, destructor
|
||||||
PartTerminal(QETElementEditor *editor, QGraphicsItem *parent = 0);
|
PartTerminal(QETElementEditor *editor, QGraphicsItem *parent = 0);
|
||||||
@@ -52,8 +47,8 @@ class PartTerminal : public CustomElementGraphicPart
|
|||||||
private:
|
private:
|
||||||
Qet::Orientation m_orientation;
|
Qet::Orientation m_orientation;
|
||||||
QPointF second_point;
|
QPointF second_point;
|
||||||
QString m_tagg;
|
|
||||||
|
|
||||||
// methods
|
// methods
|
||||||
public:
|
public:
|
||||||
enum { Type = UserType + 1106 };
|
enum { Type = UserType + 1106 };
|
||||||
|
|||||||
Reference in New Issue
Block a user