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#ifndef QTGRADIENTSTOPSCONTROLLER_H
5#define QTGRADIENTSTOPSCONTROLLER_H
6
7#include <QtWidgets/QWidget>
8
9QT_BEGIN_NAMESPACE
10
11namespace Ui {
12 class QtGradientEditor;
13}
14
15class QtGradientStopsController : public QObject
16{
17 Q_OBJECT
18public:
19 QtGradientStopsController(QObject *parent = 0);
20 ~QtGradientStopsController();
21
22 void setUi(Ui::QtGradientEditor *editor);
23
24 void setGradientStops(const QGradientStops &stops);
25 QGradientStops gradientStops() const;
26
27 QColor::Spec spec() const;
28 void setSpec(QColor::Spec spec);
29
30signals:
31 void gradientStopsChanged(const QGradientStops &stops);
32
33private:
34 QScopedPointer<class QtGradientStopsControllerPrivate> d_ptr;
35 Q_DECLARE_PRIVATE(QtGradientStopsController)
36 Q_DISABLE_COPY_MOVE(QtGradientStopsController)
37};
38
39QT_END_NAMESPACE
40
41#endif
42

source code of qttools/src/shared/qtgradienteditor/qtgradientstopscontroller.h