Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorPopupAction.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
* SPDX-FileCopyrightText: 2007 C. Boemann <cbo@boemann.dk>
3
* SPDX-FileCopyrightText: 2007 Fredy Yanardi <fyanardi@gmail.com>
4
*
5
* SPDX-License-Identifier: LGPL-2.0-or-later
6
*/
7
8
#ifndef KOCOLORPOPUPACTION_H
9
#define KOCOLORPOPUPACTION_H
10
11
#include <QAction>
12
13
#include "kritawidgets_export.h"
14
15
class
KoColor
;
16
22
class
KRITAWIDGETS_EXPORT
KoColorPopupAction
:
public
QAction
23
{
24
Q_OBJECT
25
26
public
:
32
explicit
KoColorPopupAction
(QObject *parent = 0);
33
37
~KoColorPopupAction
()
override
;
38
39
public
Q_SLOTS:
41
void
setCurrentColor(
const
QColor &color );
42
44
void
setCurrentColor(
const
KoColor
&color );
45
47
QColor currentColor()
const
;
48
50
KoColor
currentKoColor()
const
;
51
53
void
updateIcon();
54
55
Q_SIGNALS:
61
void
colorChanged
(
const
KoColor
&color);
62
63
private
Q_SLOTS:
64
void
emitColorChanged();
65
void
colorWasSelected(
const
KoColor
&color,
bool
final
);
66
void
colorWasEdited(
const
QColor &color );
67
void
opacityWasChanged(
int
opacity );
68
69
private
:
70
class
KoColorPopupActionPrivate
;
71
KoColorPopupActionPrivate
*
const
d
;
72
};
73
74
#endif
75
KoColorPopupAction::KoColorPopupActionPrivate
Definition
KoColorPopupAction.cpp:30
KoColorPopupAction
Definition
KoColorPopupAction.h:23
KoColorPopupAction::d
KoColorPopupActionPrivate *const d
Definition
KoColorPopupAction.h:71
KoColorPopupAction::colorChanged
void colorChanged(const KoColor &color)
KoColor
Definition
KoColor.h:31
libs
widgets
KoColorPopupAction.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52