KDStateMachineEditor API Documentation  1.2
Static Public Member Functions | List of all members
KDSME::LayoutUtils Class Reference

Static Public Member Functions

static QSizeF sizeForLabel (const QString &label)
 
static bool moveInner (State *state, const QPointF &offset)
 Move all direct children of state state by offset offset.
 
static bool fixupLayout (State *)
 
static bool moveToParent (Element *item, Element *parentItem)
 

Member Function Documentation

◆ moveToParent()

bool LayoutUtils::moveToParent ( Element item,
Element parentItem 
)
static

Moves item item to the new parent parentItem

Keeps the item at the same position as before, by translating its KDSME::Item::pos to the new parent's coordinate system


The documentation for this class was generated from the following files:

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDStateMachineEditor
Create Qt State Machine metacode using a graphical user interface
https://github.com/KDAB/KDStateMachineEditor