Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_iconwidget.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2000 Matthias Elter <elter@kde.org>
3
* SPDX-FileCopyrightText: 2003 Patrick Julien <freak@codepimps.org>
4
*
5
* SPDX-License-Identifier: GPL-2.0-or-later
6
*/
7
8
#ifndef KIS_ICONWIDGET_H_
9
#define KIS_ICONWIDGET_H_
10
11
#include <
KisPopupButton.h
>
12
#include <kritaui_export.h>
13
14
#include <
KoResource.h
>
15
20
class
KRITAUI_EXPORT
KisIconWidget
:
public
KisPopupButton
21
{
22
23
Q_OBJECT
24
25
public
:
26
KisIconWidget
(QWidget *parent = 0,
const
QString &name = QString());
27
~KisIconWidget
()
override
;
28
void
setThumbnail(
const
QImage &thumbnail);
29
void
setResource(
KoResourceSP
resource);
30
void
setBackgroundColor(
const
QColor &color);
31
QSize preferredIconSize()
const
;
32
33
protected
:
34
void
paintEvent
(QPaintEvent *)
override
;
35
36
private
:
37
struct
Private
;
38
Private
*
const
m_d
;
39
};
40
41
#endif
// KIS_ICONWIDGET_H_
42
KisPopupButton.h
KoResource.h
KisIconWidget
Definition
kis_iconwidget.h:21
KisIconWidget::m_d
Private *const m_d
Definition
kis_iconwidget.h:38
KisPopupButton
Definition
KisPopupButton.h:19
KisPopupButton::paintEvent
void paintEvent(QPaintEvent *event) override
Definition
KisPopupButton.cpp:185
QSharedPointer< KoResource >
Private
Definition
SvgTransformParser.cpp:20
libs
ui
widgets
kis_iconwidget.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52