KDStateMachineEditor API Documentation 2.1
|
Enumerations | |
enum | DisplayOption { NoStrip , StripNameSpace } |
Enumerator | |
---|---|
NoStrip | |
StripNameSpace |
Definition at line 37 of file objecthelper.h.
Definition at line 36 of file objecthelper.cpp.
Referenced by displayString(), GraphvizLayouterBackend::layout(), and GraphvizLayouterBackend::openLayout().
QString KDSME::ObjectHelper::className | ( | const QObject * | object, |
ObjectHelper::DisplayOption | option = NoStrip |
||
) |
Definition at line 41 of file objecthelper.cpp.
References className(), and StripNameSpace.
Referenced by className(), displayString(), KDSME::Element::toDisplayString(), KDSME::HistoryState::toDisplayString(), and KDSME::PseudoState::toDisplayString().
QList< FilterType > KDSME::ObjectHelper::copy_if_type | ( | const QList< ItemType > & | list | ) |
Filters the list list
Returns a list that only contains item of type FilterType
Definition at line 74 of file objecthelper.h.
References copy_if_type().
Referenced by KDSME::Element::childElements(), KDSME::State::childStates(), copy_if_type(), filter(), findParentOfType(), and KDSME::State::transitions().
Determines the depth of object obj
relative to object root
obj
is null Definition at line 101 of file objecthelper.cpp.
References depth().
Referenced by depth().
Determines if the QObject obj
is a descendant of the QObject ascendant
.
ascendant | is a pointer to a QObject. |
object | is a pointer to a QObject. |
obj
is a descendant of ascendant
; false otherwise. Definition at line 89 of file objecthelper.cpp.
References descendantOf().
Referenced by descendantOf().
QString KDSME::ObjectHelper::displayString | ( | const QObject * | object, |
DisplayOption | option = NoStrip |
||
) |
Definition at line 47 of file objecthelper.cpp.
References addressToString(), and className().
const char * KDSME::ObjectHelper::enumToString | ( | const QMetaObject * | metaObject, |
const char * | name, | ||
int | value | ||
) |
Definition at line 58 of file objecthelper.cpp.
Referenced by KDSME::Element::typeToString().
Filter out each item in source
for that predicate
is true
Returns a copy of the original container source
Definition at line 90 of file objecthelper.h.
References copy_if_type().
Finds the parent QObject of the specified type T, if such exists.
object | is a pointer to a QObject. |
Definition at line 106 of file objecthelper.h.
References copy_if_type().
int KDSME::ObjectHelper::stringToEnum | ( | const QMetaObject * | metaObject, |
const char * | name, | ||
const char * | key | ||
) |
Definition at line 65 of file objecthelper.cpp.
Referenced by KDSME::Element::stringToType().
Definition at line 72 of file objecthelper.cpp.
Referenced by toString().
Definition at line 82 of file objecthelper.cpp.
References toString().
Definition at line 77 of file objecthelper.cpp.