22class QtGradientDialog :
public QDialog
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 QtGradientDialog(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);
48 static QGradient getGradient(
bool *ok,
const QGradient &initial, QWidget *parent = 0,
const QString &caption = QString());
49 static QGradient getGradient(
bool *ok, QWidget *parent = 0,
const QString &caption = QString());
52 QScopedPointer<
class QtGradientDialogPrivate> d_ptr;
53 Q_DECLARE_PRIVATE(QtGradientDialog)
54 Q_DISABLE_COPY_MOVE(QtGradientDialog)