mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
formatting / whitespace - unify declarations
This commit is contained in:
parent
3b24bd25c7
commit
940ae0c34a
@ -105,13 +105,13 @@ void PasteDiagramCommand::redo()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const QList <QGraphicsItem *> qgis_list = content.items(filter);
|
const QList<QGraphicsItem *> qgis_list = content.items(filter);
|
||||||
for (QGraphicsItem *item : qgis_list) {
|
for (QGraphicsItem *item : qgis_list) {
|
||||||
diagram->addItem(item);
|
diagram->addItem(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const QList <QGraphicsItem *> qgis_list = content.items();
|
const QList<QGraphicsItem *> qgis_list = content.items();
|
||||||
for (QGraphicsItem *qgi : qgis_list)
|
for (QGraphicsItem *qgi : qgis_list)
|
||||||
qgi -> setSelected(true);
|
qgi -> setSelected(true);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ DiagramContent::DiagramContent()
|
|||||||
DiagramContent::DiagramContent(Diagram *diagram, bool selected) :
|
DiagramContent::DiagramContent(Diagram *diagram, bool selected) :
|
||||||
m_selected_items(diagram->selectedItems())
|
m_selected_items(diagram->selectedItems())
|
||||||
{
|
{
|
||||||
QList <QGraphicsItem *> item_list;
|
QList<QGraphicsItem *> item_list;
|
||||||
if (selected) {
|
if (selected) {
|
||||||
item_list = m_selected_items;
|
item_list = m_selected_items;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1166,7 +1166,7 @@ void Element::removeTextGroup(ElementTextItemGroup *group)
|
|||||||
if(!m_texts_group.contains(group))
|
if(!m_texts_group.contains(group))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const QList <QGraphicsItem *> items_list = group->childItems();
|
const QList<QGraphicsItem *> items_list = group->childItems();
|
||||||
|
|
||||||
for(QGraphicsItem *qgi : items_list)
|
for(QGraphicsItem *qgi : items_list)
|
||||||
{
|
{
|
||||||
|
@ -359,7 +359,7 @@ Terminal* Terminal::alignedWithTerminal() const
|
|||||||
path.lineTo(line.p2());
|
path.lineTo(line.p2());
|
||||||
|
|
||||||
//Get all QGraphicsItem in the alignement of this terminal
|
//Get all QGraphicsItem in the alignement of this terminal
|
||||||
QList <QGraphicsItem *> qgi_list = diagram() -> items(path);
|
QList<QGraphicsItem *> qgi_list = diagram() -> items(path);
|
||||||
|
|
||||||
//Remove all terminals of the parent element
|
//Remove all terminals of the parent element
|
||||||
foreach (Terminal *t, parent_element_ -> terminals())
|
foreach (Terminal *t, parent_element_ -> terminals())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user