1// Copyright (C) 2020 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 QQUICKSTYLEITEMFRAME_H
5#define QQUICKSTYLEITEMFRAME_H
6
7#include "qquickstyleitem.h"
8#include <QtQuickTemplates2/private/qquickframe_p.h>
9
10QT_BEGIN_NAMESPACE
11
12class QQuickStyleItemFrame : public QQuickStyleItem
13{
14 Q_OBJECT
15 QML_NAMED_ELEMENT(Frame)
16
17protected:
18 void paintEvent(QPainter *painter) const override;
19 StyleItemGeometry calculateGeometry() override;
20
21private:
22 void initStyleOption(QStyleOptionFrame &styleOption) const;
23};
24
25QT_END_NAMESPACE
26
27#endif // QQUICKSTYLEITEMFRAME_H
28

source code of qtdeclarative/src/quicknativestyle/items/qquickstyleitemframe.h