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
15class KRITAWIDGETS_EXPORT KisPaletteDelegate : public QAbstractItemDelegate
16{
17private:
18 static const int BORDER_WIDTH;
19public:
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
31private:
33};
34
35#endif /* __KIS_PALETTE_DELEGATE_H */
float value(const T *src, size_t ch)
void setCrossedKeyword(const QString &value)
static const int BORDER_WIDTH