KDStateMachineEditor API Documentation
1.2.50
Main Page
Namespaces
Classes
Examples
•
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Pages
source
src
core
model
elementwalker.h
1
/*
2
This file is part of the KDAB State Machine Editor Library.
3
4
SPDX-FileCopyrightText: 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5
Author: Kevin Funk <kevin.funk@kdab.com>
6
7
SPDX-License-Identifier: LGPL-2.1-only OR LicenseRef-KDAB-KDStateMachineEditor
8
9
Licensees holding valid commercial KDAB State Machine Editor Library
10
licenses may use this file in accordance with the KDAB State Machine Editor
11
Library License Agreement provided with the Software.
12
13
Contact info@kdab.com if any conditions of this licensing are not clear to you.
14
*/
15
16
#ifndef KDSME_MODEL_ELEMENTWALKER_H
17
#define KDSME_MODEL_ELEMENTWALKER_H
18
19
#include "element.h"
20
#include "treewalker.h"
21
22
namespace
KDSME
{
23
24
template
<>
25
struct
TreeWalkerTrait
<
Element
*>
26
{
27
static
inline
QList<Element*>
children(
Element
* element)
28
{
29
return
element->childElements();
30
}
31
};
32
typedef
TreeWalker<Element*>
ElementWalker
;
33
34
}
35
36
#endif
KDSME::TreeWalkerTrait
Definition:
treewalker.h:28
QList
KDSME::TreeWalker
Definition:
treewalker.h:39
KDSME::Element
Definition:
element.h:34
KDSME
Definition:
mainwindow.h:21
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