QElectroTech  0.70
Classes | Functions
element.h File Reference
#include "qet.h"
#include "qetgraphicsitem.h"
#include "diagramcontext.h"
#include "assignvariables.h"
#include "elementslocation.h"
#include "nameslist.h"
#include <algorithm>
#include <QPicture>

Go to the source code of this file.

Classes

class  Element
 

Functions

bool comparPos (const Element *elmt1, const Element *elmt2)
 comparPos Compare position of the two elements. Compare 3 points: 1 folio - 2 row - 3 line returns a response when a comparison is found. More...
 

Function Documentation

◆ comparPos()

bool comparPos ( const Element elmt1,
const Element elmt2 
)

comparPos Compare position of the two elements. Compare 3 points: 1 folio - 2 row - 3 line returns a response when a comparison is found.

Returns
true if elmt1 is at lower position than elmt 2, else false

Definition at line 1414 of file element.cpp.

References Diagram::convertPosition(), QetGraphicsItem::diagram(), and Diagram::folioIndex().

Referenced by Element::linkedElements().