Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paintop_list_widget.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2004 Boudewijn Rempt (boud@valdyas.org)
3
* SPDX-FileCopyrightText: 2010 Lukáš Tvrdý <lukast.dev@gmail.com>
4
* SPDX-FileCopyrightText: 2011 Silvio Heinrich <plassy@web.de>
5
*
6
* SPDX-License-Identifier: GPL-2.0-or-later
7
*/
8
9
#ifndef KIS_PAINTOP_LIST_WIDGET_H_
10
#define KIS_PAINTOP_LIST_WIDGET_H_
11
12
#include <kritaui_export.h>
13
#include "
kis_categorized_list_view.h
"
14
15
class
KisPaintOpFactory
;
16
class
KisSortedPaintOpListModel
;
17
21
//*
22
class
KRITAUI_EXPORT
KisPaintOpListWidget
:
public
KisCategorizedListView
23
{
24
Q_OBJECT
25
public
:
26
KisPaintOpListWidget
(QWidget* parent=0,
const
char
* name=0);
27
~KisPaintOpListWidget
()
override
;
28
29
QString currentItem()
const
;
30
31
void
setPaintOpList(
const
QList<KisPaintOpFactory*>
& list);
32
void
setCurrent(
const
KisPaintOpFactory
* op);
33
void
setCurrent(
const
QString & paintOpId);
34
35
Q_SIGNALS:
36
void
activated
(
const
QString&);
37
38
private
Q_SLOTS:
39
void
slotOpActivated(
const
QModelIndex& index);
40
41
protected
:
42
QString itemAt(
int
idx)
const
;
43
44
private
:
45
KisSortedPaintOpListModel
*
m_model
;
46
};
47
48
#endif
// KIS_PAINTOP_LIST_WIDGET_H_
KisCategorizedListView
Definition
kis_categorized_list_view.h:16
KisPaintOpFactory
Definition
kis_paintop_factory.h:39
KisPaintOpListWidget
Definition
kis_paintop_list_widget.h:23
KisPaintOpListWidget::activated
void activated(const QString &)
KisPaintOpListWidget::m_model
KisSortedPaintOpListModel * m_model
Definition
kis_paintop_list_widget.h:45
KisSortedPaintOpListModel
Definition
kis_paint_ops_model.h:57
QList
Definition
KisQStringListFwd.h:16
kis_categorized_list_view.h
libs
ui
widgets
kis_paintop_list_widget.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52