1 | // Copyright (C) 2021 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QQUICKSTYLEITEMTREEINDICATOR_H |
5 | #define QQUICKSTYLEITEMTREEINDICATOR_H |
6 | |
7 | #include "qquickstyleitem.h" |
8 | #include <QtQuickTemplates2/private/qquicktreeviewdelegate_p.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QQuickStyleItemTreeIndicator : public QQuickStyleItem |
13 | { |
14 | Q_OBJECT |
15 | QML_NAMED_ELEMENT(TreeIndicator) |
16 | |
17 | protected: |
18 | void connectToControl() const override; |
19 | void paintEvent(QPainter *painter) const override; |
20 | StyleItemGeometry calculateGeometry() override; |
21 | |
22 | private: |
23 | void initStyleOption(QStyleOptionViewItem &styleOption) const; |
24 | }; |
25 | |
26 | QT_END_NAMESPACE |
27 | |
28 | #endif // QQUICKSTYLEITEMTREEINDICATOR_H |
29 |