mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Tidy up som comments
This commit is contained in:
@@ -445,9 +445,7 @@ void ExportDialog::generateDxf(Diagram *diagram,
|
|||||||
QList <QetGraphicsTableItem *> list_tables;
|
QList <QetGraphicsTableItem *> list_tables;
|
||||||
|
|
||||||
// Determine les elements a "XMLiser"
|
// Determine les elements a "XMLiser"
|
||||||
int itm = 0;
|
|
||||||
foreach(QGraphicsItem *qgi, diagram -> items()) {
|
foreach(QGraphicsItem *qgi, diagram -> items()) {
|
||||||
qDebug() << "Item " << itm++ << qgi->type();
|
|
||||||
if (Element *elmt = qgraphicsitem_cast<Element *>(qgi)) {
|
if (Element *elmt = qgraphicsitem_cast<Element *>(qgi)) {
|
||||||
list_elements << elmt;
|
list_elements << elmt;
|
||||||
} else if (Conductor *f = qgraphicsitem_cast<Conductor *>(qgi)) {
|
} else if (Conductor *f = qgraphicsitem_cast<Conductor *>(qgi)) {
|
||||||
|
|||||||
@@ -603,7 +603,6 @@ bool QetGraphicsTableItem::toDXF(const QString &filepath)
|
|||||||
QPointF p1(offset+m_header_item->sectionSize(i), 0);
|
QPointF p1(offset+m_header_item->sectionSize(i), 0);
|
||||||
QPointF p2(offset+m_header_item->sectionSize(i), m_current_size.height());
|
QPointF p2(offset+m_header_item->sectionSize(i), m_current_size.height());
|
||||||
Createdxf::drawLine(filepath,QLineF(mapToScene(p1),mapToScene(p2)),0);
|
Createdxf::drawLine(filepath,QLineF(mapToScene(p1),mapToScene(p2)),0);
|
||||||
// painter->drawLine(p1, p2);
|
|
||||||
offset += m_header_item->sectionSize(i);
|
offset += m_header_item->sectionSize(i);
|
||||||
}
|
}
|
||||||
//Calculate the number of rows to display.
|
//Calculate the number of rows to display.
|
||||||
@@ -622,7 +621,6 @@ bool QetGraphicsTableItem::toDXF(const QString &filepath)
|
|||||||
QPointF p1(m_header_item->rect().left(), cell_height*i);
|
QPointF p1(m_header_item->rect().left(), cell_height*i);
|
||||||
QPointF p2(m_header_item->rect().right(), cell_height*i);
|
QPointF p2(m_header_item->rect().right(), cell_height*i);
|
||||||
Createdxf::drawLine(filepath,QLineF(mapToScene(p1),mapToScene(p2)),0);
|
Createdxf::drawLine(filepath,QLineF(mapToScene(p1),mapToScene(p2)),0);
|
||||||
//painter->drawLine(p1, p2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Write text of each cell
|
//Write text of each cell
|
||||||
|
|||||||
Reference in New Issue
Block a user