QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Functions
QGIUtility Namespace Reference

Functions

bool centerToParentBottom (QGraphicsItem *item)
 centerToParentBottom Center the item at the bottom of is parent.
 
bool centerToBottomDiagram (QGraphicsItem *item_to_center, Element *element_to_follow, qreal offset)
 centerToBottomDiagram Set item pos to the bottom of diagram and centered vertically to element_to_follow, and add offset.
 
void drawBoundingRectSelection (QGraphicsItem *item, QPainter *painter)
 

Function Documentation

◆ centerToBottomDiagram()

bool QGIUtility::centerToBottomDiagram ( QGraphicsItem *  item_to_center,
Element element_to_follow,
qreal  offset 
)

centerToBottomDiagram Set item pos to the bottom of diagram and centered vertically to element_to_follow, and add offset.

Parameters
item_to_center
element_to_follow
offset
Returns
true if element is centered else false (element_to_follow have not diagram)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ centerToParentBottom()

bool QGIUtility::centerToParentBottom ( QGraphicsItem *  item)

centerToParentBottom Center the item at the bottom of is parent.

Parameters
itemitem to center
Returns
true if centered else false (item have not parent)
Here is the caller graph for this function:

◆ drawBoundingRectSelection()

void QGIUtility::drawBoundingRectSelection ( QGraphicsItem *  item,
QPainter *  painter 
)
Here is the caller graph for this function: