QElectroTech
0.70
|
#include "qgraphicsitemutility.h"
#include "element.h"
#include "diagram.h"
#include <QGraphicsItem>
#include <QDebug>
#include "elementtextitemgroup.h"
#include "crossrefitem.h"
Go to the source code of this file.
Functions | |
bool | centerToParentBottom (QGraphicsItem *item) |
centerToParentBottom Center the item at the bottom of is parent. More... | |
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. More... | |
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.
item_to_center | |
element_to_follow | |
offset |
Definition at line 54 of file qgraphicsitemutility.cpp.
References Element::boundingRect().
Referenced by CrossRefItem::autoPos(), and ElementTextItemGroup::autoPos().
bool centerToParentBottom | ( | QGraphicsItem * | item | ) |
centerToParentBottom Center the item at the bottom of is parent.
item | item to center |
Definition at line 30 of file qgraphicsitemutility.cpp.
Referenced by CrossRefItem::autoPos().