Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_shade_selector_line_combo_box.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Adam Celarek <kdedev at xibo dot at>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H
8#define KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H
9
10#include <QComboBox>
11
15
16class KisShadeSelectorLineComboBox : public QComboBox
17{
18 Q_OBJECT
19public:
20 explicit KisShadeSelectorLineComboBox(QWidget *parent = 0);
22 void hidePopup() override;
23 void showPopup() override;
24 QString configuration() const;
25 void setLineNumber(int n);
26
27protected:
28 void resizeEvent(QResizeEvent *e) override;
29
30public Q_SLOTS:
31 void setConfiguration(const QString& stri);
32 void updateSettings();
33 void setGradient(bool);
34 void setPatches(bool);
35 void setPatchCount(int count);
36 void setLineHeight(int height);
37
38private:
40 QScopedPointer<KisColorSelectorBaseProxy> m_parentProxy;
42
43};
44
45#endif // KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H
KisShadeSelectorLineComboBoxPopup * m_popup
QScopedPointer< KisColorSelectorBaseProxy > m_parentProxy