Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickstyleitemtreeindicator.h
Go to the documentation of this file.
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
11
13{
15 QML_NAMED_ELEMENT(TreeIndicator)
16
17protected:
18 void connectToControl() const override;
19 void paintEvent(QPainter *painter) const override;
21
22private:
23 void initStyleOption(QStyleOptionViewItem &styleOption) const;
24};
25
27
28#endif // QQUICKSTYLEITEMTREEINDICATOR_H
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
StyleItemGeometry calculateGeometry() override
void paintEvent(QPainter *painter) const override
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define Q_OBJECT
QPainter painter(this)
[7]