Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPaletteDelegate.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef __KIS_PALETTE_DELEGATE_H
8
#define __KIS_PALETTE_DELEGATE_H
9
10
#include <QAbstractItemDelegate>
11
12
#include "kritawidgets_export.h"
13
14
15
class
KRITAWIDGETS_EXPORT
KisPaletteDelegate
:
public
QAbstractItemDelegate
16
{
17
private
:
18
static
const
int
BORDER_WIDTH
;
19
public
:
20
KisPaletteDelegate
(QObject * parent = 0);
21
~KisPaletteDelegate
()
override
;
22
23
void
setCrossedKeyword
(
const
QString &
value
)
24
{
25
m_crossedKeyword =
value
;
26
}
27
28
void
paint(QPainter *,
const
QStyleOptionViewItem &,
const
QModelIndex &)
const override
;
29
QSize sizeHint(
const
QStyleOptionViewItem & option,
const
QModelIndex &)
const override
;
30
31
private
:
32
QString
m_crossedKeyword
;
33
};
34
35
#endif
/* __KIS_PALETTE_DELEGATE_H */
value
float value(const T *src, size_t ch)
Definition
JPEGXLImport.cpp:93
KisPaletteDelegate
Definition
KisPaletteDelegate.h:16
KisPaletteDelegate::m_crossedKeyword
QString m_crossedKeyword
Definition
KisPaletteDelegate.h:32
KisPaletteDelegate::setCrossedKeyword
void setCrossedKeyword(const QString &value)
Definition
KisPaletteDelegate.h:23
KisPaletteDelegate::BORDER_WIDTH
static const int BORDER_WIDTH
Definition
KisPaletteDelegate.h:18
libs
widgets
KisPaletteDelegate.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52