mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-14 20:29:59 +02:00
rebase XMLProperties_New (c0d9bf9) to master
This commit is contained in:
@@ -28,25 +28,25 @@ class TerminalData : public PropertiesInterface
|
||||
void setParent(QGraphicsObject* parent);
|
||||
void toSettings(QSettings &settings,
|
||||
const QString prefix = QString()) const override;
|
||||
void fromSettings(const QSettings &settings,
|
||||
const QString prefix = QString()) override;
|
||||
void toSettings(QSettings &settings, const QString& = QString()) const override;
|
||||
void fromSettings(const QSettings &settings, const QString& = QString()) override;
|
||||
QDomElement toXml(QDomDocument &xml_element) const override;
|
||||
bool fromXml(const QDomElement &xml_element) override;
|
||||
|
||||
// must be public, because this class is a private member
|
||||
// of PartTerminal/Terminal and they must access this data
|
||||
static bool valideXml(const QDomElement &xml_element);
|
||||
|
||||
public:
|
||||
/**
|
||||
@brief m_orientation
|
||||
Orientation of the terminal
|
||||
*/
|
||||
Qet::Orientation m_orientation;
|
||||
Qet::Orientation m_orientation{Qet::Orientation::North};
|
||||
/**
|
||||
@brief second_point
|
||||
Position of the second point of the terminal
|
||||
in scene coordinates
|
||||
*/
|
||||
QPointF second_point;
|
||||
QPointF second_point{0,0};
|
||||
/**
|
||||
@brief m_uuid
|
||||
Uuid of the terminal.
|
||||
@@ -61,7 +61,7 @@ class TerminalData : public PropertiesInterface
|
||||
valid. So if in the loaded document a uuid exists,
|
||||
use this one and don't create a new one.
|
||||
*/
|
||||
QUuid m_uuid;
|
||||
QUuid m_uuid; // default is an invalid uuid.
|
||||
/**
|
||||
@brief m_name
|
||||
Name of the element.
|
||||
@@ -79,7 +79,7 @@ class TerminalData : public PropertiesInterface
|
||||
It is used to store the initial position so that
|
||||
PartTerminal and Terminal have access to it.
|
||||
*/
|
||||
QPointF m_pos;
|
||||
QPointF m_pos{0,0};
|
||||
private:
|
||||
QGraphicsObject* q{nullptr};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user