sending geometry events to the root item, to support event filtering
This commit is contained in:
parent
a0f5bbf54a
commit
d4ad863b7a
@ -424,8 +424,18 @@ void QskWindow::exposeEvent( QExposeEvent* event )
|
||||
|
||||
void QskWindow::resizeEvent( QResizeEvent* event )
|
||||
{
|
||||
auto rootItem = contentItem();
|
||||
|
||||
const auto oldRect = qskItemGeometry( rootItem );
|
||||
Inherited::resizeEvent( event );
|
||||
|
||||
const auto newRect = qskItemGeometry( rootItem );
|
||||
if ( newRect != oldRect )
|
||||
{
|
||||
QskGeometryChangeEvent event( newRect, oldRect );
|
||||
QCoreApplication::sendEvent( rootItem, &event );
|
||||
}
|
||||
|
||||
if ( isExposed() )
|
||||
layoutItems();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user