File indexing completed on 2024-04-21 16:22:51
0001 /* 0002 * SPDX-FileCopyrightText: 2009 Rafael Fernández López <ereslibre@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef CATEGORYDRAWER_H 0008 #define CATEGORYDRAWER_H 0009 0010 #include <KCategoryDrawer> 0011 0012 class QPainter; 0013 class QModelIndex; 0014 class QStyleOption; 0015 0016 class CategoryDrawer : public KCategoryDrawer 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit CategoryDrawer(KCategorizedView *view); 0021 0022 void drawCategory(const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const override; 0023 }; 0024 0025 #endif