1/*
2 SPDX-FileCopyrightText: 2009 Rafael Fernández López <ereslibre@kde.org>
3 SPDX-FileCopyrightText: 2013 Dominik Haumann <dhaumann@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KATE_CATEGORYDRAWER_H
9#define KATE_CATEGORYDRAWER_H
10
11#include <KCategoryDrawer>
12
13class QPainter;
14class QModelIndex;
15class QStyleOption;
16
17class KateCategoryDrawer : public KCategoryDrawer
18{
19public:
20 KateCategoryDrawer();
21
22 void drawCategory(const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const override;
23
24 int categoryHeight(const QModelIndex &index, const QStyleOption &option) const override;
25
26 int leftMargin() const override;
27
28 int rightMargin() const override;
29};
30
31#endif
32

source code of ktexteditor/src/syntax/katecategorydrawer.h