1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the Qt API. It exists for the convenience |
9 | // of Qt Designer. This header file may change from version to version |
10 | // without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | // |
14 | |
15 | #ifndef QTGRADIENTSTOPSCONTROLLER_H |
16 | #define QTGRADIENTSTOPSCONTROLLER_H |
17 | |
18 | #include <QtWidgets/QWidget> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | namespace Ui { |
23 | class QtGradientEditor; |
24 | } |
25 | |
26 | class QtGradientStopsController : public QObject |
27 | { |
28 | Q_OBJECT |
29 | public: |
30 | QtGradientStopsController(QObject *parent = 0); |
31 | ~QtGradientStopsController(); |
32 | |
33 | void setUi(Ui::QtGradientEditor *editor); |
34 | |
35 | void setGradientStops(const QGradientStops &stops); |
36 | QGradientStops gradientStops() const; |
37 | |
38 | QColor::Spec spec() const; |
39 | void setSpec(QColor::Spec spec); |
40 | |
41 | signals: |
42 | void gradientStopsChanged(const QGradientStops &stops); |
43 | |
44 | private: |
45 | QScopedPointer<class QtGradientStopsControllerPrivate> d_ptr; |
46 | Q_DECLARE_PRIVATE(QtGradientStopsController) |
47 | Q_DISABLE_COPY_MOVE(QtGradientStopsController) |
48 | }; |
49 | |
50 | QT_END_NAMESPACE |
51 | |
52 | #endif |
53 |