KDStateMachineEditor API Documentation  1.2.9
A framework for creating Qt State Machine metacode using a graphical user interface
depthchecker.h
1 /*
2  This file is part of the KDAB State Machine Editor Library.
3 
4  SPDX-FileCopyrightText: 2015-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_DEPTHCHECKER_H
17 #define KDSME_DEPTHCHECKER_H
18 
19 #include "kdsme_core_export.h"
20 
21 #include "element.h"
22 
23 #include <QObject>
24 
25 namespace KDSME {
26 
27 class KDSME_CORE_EXPORT DepthChecker : public QObject
28 {
29  Q_OBJECT
30  Q_PROPERTY(KDSME::Element* target READ target WRITE setTarget NOTIFY targetChanged FINAL)
31  Q_PROPERTY(int depth READ depth NOTIFY depthChanged FINAL)
32 
33 public:
34  explicit DepthChecker(QObject* parent = nullptr);
35  ~DepthChecker();
36 
37  Element* target() const;
38  void setTarget(Element* target);
39 
40  int depth() const;
41 
42 Q_SIGNALS:
43  void targetChanged(QObject* target);
44  void depthChanged(int depth);
45 
46 private:
47  struct Private;
49 
50  Q_PRIVATE_SLOT(d, void updateDepth())
51 };
52 
53 }
54 
55 #endif // KDSME_DEPTHCHECKER_H
Definition: depthchecker.h:27
Definition: element.h:34
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