| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause |
| 3 | |
| 4 | #ifndef CUSTOMSTYLE_H |
| 5 | #define CUSTOMSTYLE_H |
| 6 | |
| 7 | #include <QProxyStyle> |
| 8 | |
| 9 | //! [0] |
| 10 | class CustomStyle : public QProxyStyle |
| 11 | { |
| 12 | Q_OBJECT |
| 13 | |
| 14 | public: |
| 15 | CustomStyle(const QWidget *widget); |
| 16 | ~CustomStyle() {} |
| 17 | |
| 18 | void drawPrimitive(PrimitiveElement element, const QStyleOption *option, |
| 19 | QPainter *painter, const QWidget *widget) const override; |
| 20 | }; |
| 21 | //! [0] |
| 22 | |
| 23 | #endif |
| 24 |
