Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_categorized_item_delegate.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2009 Cyrille Berger <cberger@cberger.net>
3
* SPDX-FileCopyrightText: 2011 Silvio Heinrich <plassy@web.de>
4
* SPDX-FileCopyrightText: 2014 Mohit Goyal <mohit.bits2011@gmail.com>
5
*
6
* SPDX-License-Identifier: LGPL-2.1-or-later
7
*/
8
9
#ifndef _KIS_CATEGORIZED_ITEM_DELEGATE_H_
10
#define _KIS_CATEGORIZED_ITEM_DELEGATE_H_
11
12
#include <kritaui_export.h>
13
#include <QStyledItemDelegate>
14
18
class
KRITAUI_EXPORT
KisCategorizedItemDelegate
:
public
QStyledItemDelegate
19
{
20
public
:
21
KisCategorizedItemDelegate
(QObject *parent);
22
void
paint(QPainter* painter,
const
QStyleOptionViewItem& option,
const
QModelIndex& index)
const override
;
23
QSize sizeHint(
const
QStyleOptionViewItem& option,
const
QModelIndex& index)
const override
;
24
25
private
:
26
void
paintTriangle(QPainter* painter, qint32 x, qint32 y, qint32 size,
bool
rotate)
const
;
27
mutable
qint32
m_minimumItemHeight
;
28
};
29
30
#endif
// _KIS_CATEGORIZED_ITEM_DELEGATE_H_
KisCategorizedItemDelegate
Definition
kis_categorized_item_delegate.h:19
KisCategorizedItemDelegate::m_minimumItemHeight
qint32 m_minimumItemHeight
Definition
kis_categorized_item_delegate.h:27
libs
ui
kis_categorized_item_delegate.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52