Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_shade_selector_line_combo_box_popup.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Adam Celarek <kdedev at xibo dot at>
3 * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <dimula73@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef __KIS_SHADE_SELECTOR_LINE_COMBO_BOX_POPUP_H
9#define __KIS_SHADE_SELECTOR_LINE_COMBO_BOX_POPUP_H
10
11#include <QWidget>
12
16
17
18class KisShadeSelectorLineComboBoxPopup : public QWidget {
19 Q_OBJECT
20public:
22
23 const int spacing;
24
25 KisShadeSelectorLineComboBoxPopup(QWidget* parent);
26 void setConfiguration(const QString &string);
27
28private Q_SLOTS:
29 void activateItem(QWidget *widget);
30
31private:
32 void paintEvent(QPaintEvent *) override;
33 void mouseMoveEvent(QMouseEvent * e) override;
34 void mousePressEvent(QMouseEvent* e) override;
35
36 void updateSelectedArea(const QRect &newRect);
37 void updateHighlightedArea(const QRect &newRect);
38
39private:
43
46 QScopedPointer<KisColorSelectorBaseProxy> m_parentProxy;
47};
48
49#endif /* __KIS_SHADE_SELECTOR_LINE_COMBO_BOX_POPUP_H */
QScopedPointer< KisColorSelectorBaseProxy > m_parentProxy