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
15class KoColor;
16
22class KRITAWIDGETS_EXPORT KoColorPopupAction : public QAction
23{
24 Q_OBJECT
25
26public:
32 explicit KoColorPopupAction(QObject *parent = 0);
33
37 ~KoColorPopupAction() override;
38
39public 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
55Q_SIGNALS:
61 void colorChanged(const KoColor &color);
62
63private 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
69private:
72};
73
74#endif
75
KoColorPopupActionPrivate *const d
void colorChanged(const KoColor &color)