Krita Source Code Documentation
Loading...
Searching...
No Matches
KoForegroundColour.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 SPDX-FileCopyrightText: 2026 Arkady Flury <arkady.flury@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#ifndef KOFOREGROUNDCOLOUR_H
8#define KOFOREGROUNDCOLOUR_H
9
10
11#include <KoDualColorButton.h>
12
13
14class KisCanvas2;
15
16class KRITAUI_EXPORT KoForegroundColour : public KoDualColorButton {
17 Q_OBJECT
18public:
19 KoForegroundColour(KisCanvasResourceProvider *canvasResourceProvider,
20 const KoColorDisplayRendererInterface *displayRenderer = 0,
21 QWidget *parent = 0, QWidget *dialogParent = 0);
22 void paint_icons(QPainter &painter) override;
23 void mouseReleaseEvent( QMouseEvent *event ) override;
24 void mousePressEvent( QMouseEvent *event ) override;
25 bool event(QEvent *event) override;
26};
27
28#endif
A widget for selecting two related colors.
virtual void paint_icons(QPainter &painter)
bool event(QEvent *event) override
virtual void mousePressEvent(QMouseEvent *event) override
virtual void mouseReleaseEvent(QMouseEvent *event) override