checks added
This commit is contained in:
parent
f2b4a5982e
commit
f4887a6e51
@ -401,6 +401,14 @@ int QskLinearBox::insertItem( int index, QQuickItem* item )
|
|||||||
if ( item == nullptr )
|
if ( item == nullptr )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if ( qskIsTransparentForPositioner( item ) )
|
||||||
|
{
|
||||||
|
qWarning() << "Inserting an item that is marked as transparent for layouting:"
|
||||||
|
<< item->metaObject()->className();
|
||||||
|
|
||||||
|
qskSetTransparentForPositioner( item, false );
|
||||||
|
}
|
||||||
|
|
||||||
auto& engine = m_data->engine;
|
auto& engine = m_data->engine;
|
||||||
|
|
||||||
if ( item->parentItem() == this )
|
if ( item->parentItem() == this )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user