Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtgradienteditor_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5//
6// W A R N I N G
7// -------------
8//
9// This file is not part of the Qt API. It exists for the convenience
10// of Qt Designer. This header file may change from version to version
11// without notice, or even be removed.
12//
13// We mean it.
14//
15
16#ifndef QTGRADIENTEDITOR_H
17#define QTGRADIENTEDITOR_H
18
19#include <QtWidgets/qwidget.h>
20
21QT_BEGIN_NAMESPACE
22
23class QtGradientEditor : public QWidget
24{
25 Q_OBJECT
26 Q_PROPERTY(QGradient gradient READ gradient WRITE setGradient)
27 Q_PROPERTY(bool backgroundCheckered READ isBackgroundCheckered WRITE setBackgroundCheckered)
28 Q_PROPERTY(bool detailsVisible READ detailsVisible WRITE setDetailsVisible)
29 Q_PROPERTY(bool detailsButtonVisible READ isDetailsButtonVisible WRITE setDetailsButtonVisible)
30public:
31 explicit QtGradientEditor(QWidget *parent = nullptr);
32 ~QtGradientEditor() override;
33
34 void setGradient(const QGradient &gradient);
35 QGradient gradient() const;
36
37 bool isBackgroundCheckered() const;
38 void setBackgroundCheckered(bool checkered);
39
40 bool detailsVisible() const;
41 void setDetailsVisible(bool visible);
42
43 bool isDetailsButtonVisible() const;
44 void setDetailsButtonVisible(bool visible);
45
46 QColor::Spec spec() const;
47 void setSpec(QColor::Spec spec);
48
49signals:
50 void gradientChanged(const QGradient &gradient);
51 void aboutToShowDetails(bool details, int extenstionWidthHint);
52
53private:
54 QScopedPointer<class QtGradientEditorPrivate> d_ptr;
55 Q_DECLARE_PRIVATE(QtGradientEditor)
56 Q_DISABLE_COPY_MOVE(QtGradientEditor)
57};
58
59QT_END_NAMESPACE
60
61#endif
void slotRadiusRadialChanged(double value)
void setCentralConical(QPointF point)
void slotCentralRadialYChanged(double value)
QDoubleSpinBox * startLinearXSpinBox
QDoubleSpinBox * centralRadialYSpinBox
QDoubleSpinBox * radiusRadialSpinBox
void slotStartLinearXChanged(double value)
QDoubleSpinBox * focalRadialXSpinBox
void angleConicalChanged(qreal angle)
void layoutDetails(bool details)
void slotCentralConicalXChanged(double value)
void setBackgroundCheckered(bool checkered)
void setupSpinBox(QDoubleSpinBox *spinBox, DoubleSlotPtr slot, double max=1.0, double step=0.01, int decimals=3)
void slotStartLinearYChanged(double value)
void(QtGradientEditorPrivate::*)(double) DoubleSlotPtr
void setRadiusRadial(qreal radius)
QDoubleSpinBox * startLinearYSpinBox
void endLinearChanged(QPointF point)
QDoubleSpinBox * endLinearYSpinBox
Ui::QtGradientEditor m_ui
void slotDetailsChanged(bool details)
void setCentralRadial(QPointF point)
QDoubleSpinBox * angleConicalSpinBox
void setAngleConical(qreal angle)
void slotFocalRadialXChanged(double value)
void setEndLinear(QPointF point)
void centralRadialChanged(QPointF point)
void showDetails(bool details)
void updateGradient(bool emitSignal)
void slotGradientStopsChanged(const QGradientStops &stops)
void slotCentralConicalYChanged(double value)
QDoubleSpinBox * centralConicalYSpinBox
void slotSpreadChanged(int spread)
void startLinearChanged(QPointF point)
void slotCentralRadialXChanged(double value)
void focalRadialChanged(QPointF point)
void setLayout(bool details)
void setType(QGradient::Type type)
void centralConicalChanged(const QPointF &point)
QDoubleSpinBox * centralConicalXSpinBox
void slotFocalRadialYChanged(double value)
void slotAngleConicalChanged(double value)
void setStartLinear(QPointF point)
QDoubleSpinBox * centralRadialXSpinBox
QDoubleSpinBox * focalRadialYSpinBox
QtGradientStopsController * m_gradientStopsController
QDoubleSpinBox * endLinearXSpinBox
void setFocalRadial(QPointF point)
void radiusRadialChanged(qreal radius)
void slotEndLinearXChanged(double value)
void slotEndLinearYChanged(double value)
void setUi(Ui::QtGradientEditor *editor)
Combined button and popup list for selecting options.