File indexing completed on 2024-05-12 04:39:20
0001 /* 0002 SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef CLANGTIDY_CHECKLISTITEMPROXYSTYLE_H 0008 #define CLANGTIDY_CHECKLISTITEMPROXYSTYLE_H 0009 0010 // Qt 0011 #include <QProxyStyle> 0012 0013 class QStyleOptionViewItem; 0014 0015 namespace ClangTidy 0016 { 0017 0018 class CheckListItemProxyStyle : public QProxyStyle 0019 { 0020 Q_OBJECT 0021 0022 public: // QStyle API 0023 void drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption* option, 0024 QPainter* painter, const QWidget* widget = nullptr) const override; 0025 0026 private: 0027 void drawCheckBox(QPainter* painter, const QStyleOptionViewItem* option) const; 0028 }; 0029 0030 } 0031 0032 #endif