using subControlRect
This commit is contained in:
parent
e49da68ab3
commit
02a63cdd76
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue