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
20QT_BEGIN_NAMESPACE
21
22namespace Ui {
23 class QtGradientEditor;
24}
25
26class QtGradientStopsController : public QObject
27{
28 Q_OBJECT
29public:
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
41signals:
42 void gradientStopsChanged(const QGradientStops &stops);
43
44private:
45 QScopedPointer<class QtGradientStopsControllerPrivate> d_ptr;
46 Q_DECLARE_PRIVATE(QtGradientStopsController)
47 Q_DISABLE_COPY_MOVE(QtGradientStopsController)
48};
49
50QT_END_NAMESPACE
51
52#endif
53

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

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