properties changed
This commit is contained in:
parent
f14036c124
commit
b64f92e695
|
@ -118,6 +118,26 @@ void QskLinearGradient::setStop( qreal x, qreal y ) noexcept
|
||||||
m_values[3] = y;
|
m_values[3] = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QskLinearGradient::setX1( qreal x ) noexcept
|
||||||
|
{
|
||||||
|
m_values[0] = x;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QskLinearGradient::setY1( qreal y ) noexcept
|
||||||
|
{
|
||||||
|
m_values[1] = y;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QskLinearGradient::setX2( qreal x ) noexcept
|
||||||
|
{
|
||||||
|
m_values[2] = x;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QskLinearGradient::setY2( qreal y ) noexcept
|
||||||
|
{
|
||||||
|
m_values[3] = y;
|
||||||
|
}
|
||||||
|
|
||||||
void QskLinearGradient::setInterval( Qt::Orientation orientation, qreal from, qreal to )
|
void QskLinearGradient::setInterval( Qt::Orientation orientation, qreal from, qreal to )
|
||||||
{
|
{
|
||||||
if ( orientation == Qt::Vertical )
|
if ( orientation == Qt::Vertical )
|
||||||
|
|
|
@ -12,8 +12,10 @@ class QSK_EXPORT QskLinearGradient : public QskGradient
|
||||||
{
|
{
|
||||||
Q_GADGET
|
Q_GADGET
|
||||||
|
|
||||||
Q_PROPERTY( QPointF start READ start WRITE setStart )
|
Q_PROPERTY( qreal x1 READ x1 WRITE setX1 )
|
||||||
Q_PROPERTY( QPointF stop READ stop WRITE setStop )
|
Q_PROPERTY( qreal y1 READ y1 WRITE setY1 )
|
||||||
|
Q_PROPERTY( qreal x2 READ x2 WRITE setX2 )
|
||||||
|
Q_PROPERTY( qreal y2 READ y2 WRITE setY2 )
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QskLinearGradient() noexcept;
|
QskLinearGradient() noexcept;
|
||||||
|
@ -72,10 +74,16 @@ class QSK_EXPORT QskLinearGradient : public QskGradient
|
||||||
QPointF stop() const noexcept;
|
QPointF stop() const noexcept;
|
||||||
|
|
||||||
qreal x1() const noexcept;
|
qreal x1() const noexcept;
|
||||||
|
void setX1( qreal ) noexcept;
|
||||||
|
|
||||||
qreal y1() const noexcept;
|
qreal y1() const noexcept;
|
||||||
|
void setY1( qreal ) noexcept;
|
||||||
|
|
||||||
qreal x2() const noexcept;
|
qreal x2() const noexcept;
|
||||||
|
void setX2( qreal ) noexcept;
|
||||||
|
|
||||||
qreal y2() const noexcept;
|
qreal y2() const noexcept;
|
||||||
|
void setY2( qreal ) noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline QskLinearGradient::QskLinearGradient() noexcept
|
inline QskLinearGradient::QskLinearGradient() noexcept
|
||||||
|
|
Loading…
Reference in New Issue