using the extent property
This commit is contained in:
parent
6087f53088
commit
6f8d2998bb
@ -48,19 +48,19 @@ QSGNode* QskSeparatorSkinlet::updateSubNode(
|
|||||||
QRectF QskSeparatorSkinlet::panelRect(
|
QRectF QskSeparatorSkinlet::panelRect(
|
||||||
const QskSeparator* separator, const QRectF& contentsRect ) const
|
const QskSeparator* separator, const QRectF& contentsRect ) const
|
||||||
{
|
{
|
||||||
const qreal m = separator->metric( QskSeparator::Panel | QskAspect::Size );
|
const qreal extent = separator->extent();
|
||||||
|
|
||||||
QRectF r;
|
QRectF r;
|
||||||
|
|
||||||
if ( separator->orientation() == Qt::Horizontal )
|
if ( separator->orientation() == Qt::Horizontal )
|
||||||
{
|
{
|
||||||
r.setWidth( contentsRect.width() );
|
r.setWidth( contentsRect.width() );
|
||||||
r.setHeight( m );
|
r.setHeight( extent );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
r.setHeight( contentsRect.height() );
|
r.setHeight( contentsRect.height() );
|
||||||
r.setWidth( m );
|
r.setWidth( extent );
|
||||||
}
|
}
|
||||||
|
|
||||||
r.moveCenter( contentsRect.center() );
|
r.moveCenter( contentsRect.center() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user