some convenience methods added
This commit is contained in:
parent
846cada62d
commit
b1d70b49d4
@ -215,6 +215,13 @@ void QskSkin::setMargin( QskAspect::Aspect aspect, const QskMargins& margins )
|
||||
m_data->hintTable.setMargin( aspect, margins );
|
||||
}
|
||||
|
||||
void QskSkin::setMargin( QskAspect::Aspect aspect,
|
||||
qreal left, qreal top, qreal right, qreal bottom )
|
||||
{
|
||||
const QskMargins margins( left, top, right, bottom );
|
||||
m_data->hintTable.setMargin( aspect, margins );
|
||||
}
|
||||
|
||||
QskMargins QskSkin::margin( QskAspect::Aspect aspect ) const
|
||||
{
|
||||
return m_data->hintTable.margin( aspect );
|
||||
@ -225,6 +232,13 @@ void QskSkin::setPadding( QskAspect::Aspect aspect, const QskMargins& padding )
|
||||
m_data->hintTable.setPadding( aspect, padding );
|
||||
}
|
||||
|
||||
void QskSkin::setPadding( QskAspect::Aspect aspect,
|
||||
qreal left, qreal top, qreal right, qreal bottom )
|
||||
{
|
||||
const QskMargins padding( left, top, right, bottom );
|
||||
m_data->hintTable.setPadding( aspect, padding );
|
||||
}
|
||||
|
||||
QskMargins QskSkin::padding( QskAspect::Aspect aspect ) const
|
||||
{
|
||||
return m_data->hintTable.padding( aspect );
|
||||
@ -281,6 +295,13 @@ void QskSkin::setBoxBorderMetrics( QskAspect::Aspect aspect,
|
||||
QskBoxBorderMetrics( left, top, right, bottom, sizeMode ) );
|
||||
}
|
||||
|
||||
void QskSkin::setBoxBorderMetrics( QskAspect::Aspect aspect,
|
||||
qreal borderWidth, Qt::SizeMode sizeMode )
|
||||
{
|
||||
m_data->hintTable.setBoxBorder(
|
||||
aspect, QskBoxBorderMetrics( borderWidth, sizeMode ) );
|
||||
}
|
||||
|
||||
void QskSkin::setBoxBorderMetrics(
|
||||
QskAspect::Aspect aspect, const QskBoxBorderMetrics& border )
|
||||
{
|
||||
|
@ -75,9 +75,13 @@ class QSK_EXPORT QskSkin : public QObject
|
||||
QSizeF strutSize( QskAspect::Aspect ) const;
|
||||
|
||||
void setMargin( QskAspect::Aspect, const QskMargins& );
|
||||
void setMargin( QskAspect::Aspect,
|
||||
qreal left, qreal top, qreal right, qreal bottom );
|
||||
QskMargins margin( QskAspect::Aspect ) const;
|
||||
|
||||
void setPadding( QskAspect::Aspect, const QskMargins& );
|
||||
void setPadding( QskAspect::Aspect,
|
||||
qreal left, qreal top, qreal right, qreal bottom );
|
||||
QskMargins padding( QskAspect::Aspect ) const;
|
||||
|
||||
void setSpacing( QskAspect::Aspect, qreal );
|
||||
@ -93,6 +97,9 @@ class QSK_EXPORT QskSkin : public QObject
|
||||
void setBoxShape( QskAspect::Aspect, const QskBoxShapeMetrics& );
|
||||
QskBoxShapeMetrics boxShape( QskAspect::Aspect ) const;
|
||||
|
||||
void setBoxBorderMetrics( QskAspect::Aspect,
|
||||
qreal borderWidth, Qt::SizeMode = Qt::AbsoluteSize );
|
||||
|
||||
void setBoxBorderMetrics( QskAspect::Aspect, qreal left, qreal top,
|
||||
qreal right, qreal bottom, Qt::SizeMode = Qt::AbsoluteSize );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user