Don't override layoutRectForSize
This commit is contained in:
parent
532f388156
commit
e53d6a2f08
|
@ -43,13 +43,6 @@ void BlurredBox::geometryChangeEvent( QskGeometryChangeEvent* e )
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
QRectF BlurredBox::layoutRectForSize( const QSizeF& size ) const
|
|
||||||
{
|
|
||||||
auto padding = paddingHint( Panel );
|
|
||||||
return { padding.left() / 2, padding.top() / 2, size.width() - padding.right(),
|
|
||||||
size.height() - padding.bottom() };
|
|
||||||
}
|
|
||||||
|
|
||||||
float BlurredBox::blurDirections() const
|
float BlurredBox::blurDirections() const
|
||||||
{
|
{
|
||||||
return m_blurDirections;
|
return m_blurDirections;
|
||||||
|
|
|
@ -21,8 +21,6 @@ class BlurredBox : public QskBox
|
||||||
BlurredBox( QQuickItem* parent = nullptr );
|
BlurredBox( QQuickItem* parent = nullptr );
|
||||||
~BlurredBox() override;
|
~BlurredBox() override;
|
||||||
|
|
||||||
QRectF layoutRectForSize( const QSizeF& size ) const override;
|
|
||||||
|
|
||||||
QRectF rectOnScreen() const;
|
QRectF rectOnScreen() const;
|
||||||
QRectF rectOfScreen() const;
|
QRectF rectOfScreen() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue