File indexing completed on 2024-04-21 03:57:42

0001 /*
0002     SPDX-FileCopyrightText: 2009 Rafael Fernández López <ereslibre@kde.org>
0003     SPDX-FileCopyrightText: 2013 Dominik Haumann <dhaumann@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KATE_CATEGORYDRAWER_H
0009 #define KATE_CATEGORYDRAWER_H
0010 
0011 #include <KCategoryDrawer>
0012 
0013 class QPainter;
0014 class QModelIndex;
0015 class QStyleOption;
0016 
0017 class KateCategoryDrawer : public KCategoryDrawer
0018 {
0019 public:
0020     KateCategoryDrawer();
0021 
0022     void drawCategory(const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const override;
0023 
0024     int categoryHeight(const QModelIndex &index, const QStyleOption &option) const override;
0025 
0026     int leftMargin() const override;
0027 
0028     int rightMargin() const override;
0029 };
0030 
0031 #endif