Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorSlider.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 SPDX-FileCopyrightText: 2006 Sven Langkamp <sven.langkamp@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KO_COLORSLIDER_H
8#define KO_COLORSLIDER_H
9
10#include <kselector.h>
11#include "kritawidgets_export.h"
13
14class KoColor;
15
16class KRITAWIDGETS_EXPORT KoColorSlider : public KSelector
17{
18 Q_OBJECT
19public:
20 explicit KoColorSlider(QWidget *parent = 0, KoColorDisplayRendererInterface *displayRenderer = KoDumbColorDisplayRenderer::instance());
21 explicit KoColorSlider(Qt::Orientation orientation, QWidget *parent = 0, KoColorDisplayRendererInterface *displayRenderer = KoDumbColorDisplayRenderer::instance());
22 ~KoColorSlider() override;
23
24public:
25 void setColors( const KoColor& minColor, const KoColor& maxColor);
29 KoColor currentColor() const;
30protected:
31 void drawContents( QPainter* ) override;
32 void drawArrow(QPainter *painter, const QPoint &pos) override;
33
34protected:
35 struct Private;
36 Private* const d;
37};
38
39#endif
static KoColorDisplayRendererInterface * instance()
KoColor currentColor(ResourceProvider *provider, ColorRole role)
Private *const d