mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-26 21:40:52 +01:00
correct more indentations / whitespace
This commit is contained in:
@@ -87,16 +87,16 @@ void ArcEditor::setUpChangeConnections()
|
||||
#if TODO_LIST
|
||||
#pragma message("@TODO implement position changes!")
|
||||
#endif
|
||||
// TODO: implement position changes!
|
||||
//m_change_connections << connect(part, &PartArc::)
|
||||
// TODO: implement position changes!
|
||||
//m_change_connections << connect(part, &PartArc::)
|
||||
}
|
||||
|
||||
void ArcEditor::disconnectChangeConnections()
|
||||
{
|
||||
for (QMetaObject::Connection c : m_change_connections) {
|
||||
for (QMetaObject::Connection c : m_change_connections) {
|
||||
disconnect(c);
|
||||
}
|
||||
m_change_connections.clear();
|
||||
}
|
||||
m_change_connections.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -247,21 +247,21 @@ class changeElementDataCommand : public ElementEditionCommand
|
||||
};
|
||||
|
||||
/**
|
||||
@brief The RotateSelectionInESCommand class
|
||||
Rotate the selected items in the element editor
|
||||
@brief The RotateSelectionInESCommand class
|
||||
Rotate the selected items in the element editor
|
||||
*/
|
||||
|
||||
class RotateElementsCommand : public ElementEditionCommand
|
||||
{
|
||||
|
||||
public:
|
||||
RotateElementsCommand(ElementScene *scene, QUndoCommand *parent=nullptr);
|
||||
void undo() override;
|
||||
void redo() override;
|
||||
RotateElementsCommand(ElementScene *scene, QUndoCommand *parent=nullptr);
|
||||
void undo() override;
|
||||
void redo() override;
|
||||
|
||||
private:
|
||||
ElementScene *m_scene =nullptr;
|
||||
QList<QGraphicsItem*> m_items;
|
||||
ElementScene *m_scene =nullptr;
|
||||
QList<QGraphicsItem*> m_items;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -449,7 +449,7 @@ const QDomDocument ElementScene::toXml(bool all_parts)
|
||||
root.setAttribute("hotspot_y", QString("%1").arg(
|
||||
-(qRound(size.y() - (ymargin/2)))));
|
||||
|
||||
QetVersion::toXmlAttribute(root);
|
||||
QetVersion::toXmlAttribute(root);
|
||||
root.setAttribute("link_type", m_element_data.typeToString(m_element_data.m_type));
|
||||
|
||||
//Uuid used to compare two elements
|
||||
|
||||
@@ -125,6 +125,6 @@ class PartLine : public CustomElementGraphicPart
|
||||
int m_vector_index = -1;
|
||||
QPropertyUndoCommand *m_undo_command;
|
||||
QVector<QetGraphicsHandlerItem *> m_handler_vector;
|
||||
qreal m_rot;
|
||||
qreal m_rot;
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -117,6 +117,6 @@ class PartPolygon : public CustomElementGraphicPart
|
||||
QAction *m_insert_point,
|
||||
*m_remove_point;
|
||||
QPointF m_context_menu_pos;
|
||||
qreal m_rot;
|
||||
qreal m_rot;
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
PartRectangle::PartRectangle(QETElementEditor *editor, QGraphicsItem *parent) :
|
||||
CustomElementGraphicPart(editor, parent)
|
||||
{
|
||||
m_rot=0;
|
||||
m_rot=0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -201,7 +201,7 @@ QRectF PartRectangle::sceneGeometricRect() const
|
||||
*/
|
||||
QPointF PartRectangle::sceneTopLeft() const
|
||||
{
|
||||
return(mapToScene(rect().topLeft()));
|
||||
return(mapToScene(rect().topLeft()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,7 @@ class PartRectangle : public CustomElementGraphicPart
|
||||
Q_PROPERTY(QRectF rect READ rect WRITE setRect)
|
||||
Q_PROPERTY(qreal xRadius READ XRadius WRITE setXRadius NOTIFY XRadiusChanged)
|
||||
Q_PROPERTY(qreal yRadius READ YRadius WRITE setYRadius NOTIFY YRadiusChanged)
|
||||
Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
|
||||
Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
|
||||
|
||||
// constructors, destructor
|
||||
public:
|
||||
@@ -48,7 +48,7 @@ class PartRectangle : public CustomElementGraphicPart
|
||||
void rectChanged();
|
||||
void XRadiusChanged();
|
||||
void YRadiusChanged();
|
||||
void rotationChanged();
|
||||
void rotationChanged();
|
||||
|
||||
// methods
|
||||
public:
|
||||
@@ -112,6 +112,6 @@ class PartRectangle : public CustomElementGraphicPart
|
||||
m_old_xRadius,
|
||||
m_old_yRadius;
|
||||
bool m_modifie_radius_equaly = false;
|
||||
qreal m_rot;
|
||||
qreal m_rot;
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -72,7 +72,7 @@ class PartTerminal : public CustomElementGraphicPart
|
||||
void handleUserTransformation(const QRectF &, const QRectF &) override;
|
||||
|
||||
Qet::Orientation orientation() const {return d -> m_orientation;}
|
||||
void setOrientation(Qet::Orientation ori);
|
||||
void setOrientation(Qet::Orientation ori);
|
||||
|
||||
qreal rotation() const;
|
||||
void setRotation(qreal angle);
|
||||
|
||||
@@ -569,7 +569,7 @@ bool StyleEditor::isStyleEditable(QList<CustomElementPart *> cep_list)
|
||||
QStringList str;
|
||||
str << "arc" << "ellipse" << "line" << "polygon" << "rect";
|
||||
|
||||
for (CustomElementPart *cep: cep_list)
|
||||
for (CustomElementPart *cep: cep_list)
|
||||
if (!str.contains(cep -> xmlName()))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user