• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • krita API Reference
  • KDE Home
  • Contact Us
 

KritaWidgets

  • sources
  • kfour-appscomplete
  • krita
  • libs
  • widgets
KoColorPopupAction.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  * SPDX-FileCopyrightText: 2007 C. Boemann <[email protected]>
3  * SPDX-FileCopyrightText: 2007 Fredy Yanardi <[email protected]>
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 
QColor
QObject
KoColorPopupAction
KoColorPopupAction makes use of KoColorSetWidget to show a widget for for choosing a color (colormana...
Definition: KoColorPopupAction.h:22
QAction
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 11:48:22 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KritaWidgets

Skip menu "KritaWidgets"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

krita API Reference

Skip menu "krita API Reference"
  • libs
  •   KritaBasicFlakes
  •   brush
  •   KritaUndo2
  •   KritaFlake
  •   image
  •   KritaPlugin
  •   Krita
  •   KritaPigment
  •   KritaResources
  •   KritaStore
  •   ui
  •   KritaWidgets
  •   KritaWidgetUtils
  • plugins
  •   Assitants
  •   Extensions
  •   Filters
  •   Generators
  •   Formats
  •           src
  •   PaintOps
  •     libpaintop

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal