KDStateMachineEditor API Documentation 2.1
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
KDSME::LayoutUtils Class Reference

#include <layoututils.h>

Static Public Member Functions

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

Detailed Description

Definition at line 34 of file layoututils.h.

Member Function Documentation

◆ fixupLayout()

bool LayoutUtils::fixupLayout ( State )
static

Definition at line 53 of file layoututils.cpp.

◆ moveInner()

bool LayoutUtils::moveInner ( State state,
const QPointF &  offset 
)
static

Move all direct children of state state by offset offset.

Definition at line 40 of file layoututils.cpp.

References KDSME::State::childStates().

Referenced by KDSME::RegionLayouter::layoutRegion().

◆ 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

Definition at line 64 of file layoututils.cpp.

References KDSME::Element::absolutePos(), KDSME::Element::parentElement(), KDSME::Element::pos, KDSME::Element::setParent(), and KDSME::Element::setPos().

◆ sizeForLabel()

QSizeF LayoutUtils::sizeForLabel ( const QString &  label)
static

Definition at line 29 of file layoututils.cpp.

Referenced by KDSME::Element::preferredSize().


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
Generated on Tue Jul 15 2025 15:21:47 for KDStateMachineEditor API Documentation by doxygen 1.9.8