15#ifndef QTGRADIENTEDITOR_H
16#define QTGRADIENTEDITOR_H
18#include <QtWidgets/QWidget>
22class QtGradientEditor :
public QWidget
25 Q_PROPERTY(QGradient gradient READ gradient WRITE setGradient)
26 Q_PROPERTY(
bool backgroundCheckered READ isBackgroundCheckered WRITE setBackgroundCheckered)
27 Q_PROPERTY(
bool detailsVisible READ detailsVisible WRITE setDetailsVisible)
28 Q_PROPERTY(
bool detailsButtonVisible READ isDetailsButtonVisible WRITE setDetailsButtonVisible)
30 QtGradientEditor(QWidget *parent = 0);
33 void setGradient(
const QGradient &gradient);
34 QGradient gradient()
const;
36 bool isBackgroundCheckered()
const;
37 void setBackgroundCheckered(
bool checkered);
39 bool detailsVisible()
const;
40 void setDetailsVisible(
bool visible);
42 bool isDetailsButtonVisible()
const;
43 void setDetailsButtonVisible(
bool visible);
45 QColor::Spec spec()
const;
46 void setSpec(QColor::Spec spec);
49 void gradientChanged(
const QGradient &gradient);
50 void aboutToShowDetails(
bool details,
int extenstionWidthHint);
53 QScopedPointer<
class QtGradientEditorPrivate> d_ptr;
54 Q_DECLARE_PRIVATE(QtGradientEditor)
55 Q_DISABLE_COPY_MOVE(QtGradientEditor)
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 setRadiusRadial(qreal radius)
QDoubleSpinBox * startLinearYSpinBox
bool m_detailsButtonVisible
void endLinearChanged(QPointF point)
QDoubleSpinBox * endLinearYSpinBox
Ui::QtGradientEditor m_ui
void slotDetailsChanged(bool details)
void setCentralRadial(QPointF point)
QDoubleSpinBox * angleConicalSpinBox
QButtonGroup * m_typeGroup
void setAngleConical(qreal angle)
QGridLayout * m_gridLayout
void slotFocalRadialXChanged(double value)
int extensionWidthHint() const
void setEndLinear(QPointF point)
void centralRadialChanged(QPointF point)
QGridLayout * m_hiddenLayout
void showDetails(bool details)
void updateGradient(bool emitSignal)
QGradient gradient() const
void slotGradientStopsChanged(const QGradientStops &stops)
void slotCentralConicalYChanged(double value)
QDoubleSpinBox * centralConicalYSpinBox
void slotSpreadChanged(int spread)
void setCombos(bool combos)
void startLinearChanged(QPointF point)
void slotCentralRadialXChanged(double value)
void focalRadialChanged(QPointF point)
void slotTypeChanged(int type)
void setLayout(bool details)
void setType(QGradient::Type type)
void centralConicalChanged(const QPointF &point)
QDoubleSpinBox * centralConicalXSpinBox
void slotFocalRadialYChanged(double value)
bool m_backgroundCheckered
void slotAngleConicalChanged(double value)
void setStartLinear(QPointF point)
QDoubleSpinBox * centralRadialXSpinBox
QButtonGroup * m_spreadGroup
QDoubleSpinBox * focalRadialYSpinBox
QtGradientStopsController * m_gradientStopsController
QDoubleSpinBox * endLinearXSpinBox
void setFocalRadial(QPointF point)
void radiusRadialChanged(qreal radius)
void slotEndLinearXChanged(double value)
void slotEndLinearYChanged(double value)
Combined button and popup list for selecting options.