1// Copyright (C) 2016 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 QPROXYSTYLE_P_H
5#define QPROXYSTYLE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp. This header
13// file may change from version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "qcommonstyle.h"
20#include "qcommonstyle_p.h"
21#include "qproxystyle.h"
22
23#ifndef QT_NO_STYLE_PROXY
24
25QT_BEGIN_NAMESPACE
26
27class QProxyStylePrivate : public QCommonStylePrivate
28{
29 Q_DECLARE_PUBLIC(QProxyStyle)
30public:
31 void ensureBaseStyle() const;
32private:
33 QProxyStylePrivate() :
34 QCommonStylePrivate(), baseStyle(nullptr) {}
35 mutable QPointer <QStyle> baseStyle;
36};
37
38QT_END_NAMESPACE
39
40#endif // QT_NO_STYLE_PROXY
41
42#endif //QPROXYSTYLE_P_H
43

source code of qtbase/src/widgets/styles/qproxystyle_p.h