using subControlRect

This commit is contained in:
Uwe Rathmann 2023-12-29 08:50:46 +01:00
parent e49da68ab3
commit 02a63cdd76
1 changed files with 2 additions and 4 deletions

View File

@ -132,17 +132,15 @@ namespace
{ {
const auto window = overlay->window(); const auto window = overlay->window();
if ( overlay->size().isEmpty() ) const auto rect = overlay->subControlRect( Overlay::Panel );
if ( rect.isEmpty() )
return nullptr; return nullptr;
auto rootNode = qskScenegraphAnchorNode( window ); auto rootNode = qskScenegraphAnchorNode( window );
if ( rootNode == nullptr ) if ( rootNode == nullptr )
return nullptr; return nullptr;
const auto rect = overlay->subControlRect( Overlay::Panel );
auto textureNode = static_cast< FilterNode* >( node ); auto textureNode = static_cast< FilterNode* >( node );
if ( textureNode == nullptr ) if ( textureNode == nullptr )
{ {
auto texture = new QskSceneTexture( window ); auto texture = new QskSceneTexture( window );