checks added

This commit is contained in:
Uwe Rathmann 2019-09-18 08:56:16 +02:00
parent f2b4a5982e
commit f4887a6e51

View File

@ -401,6 +401,14 @@ int QskLinearBox::insertItem( int index, QQuickItem* item )
if ( item == nullptr )
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;
if ( item->parentItem() == this )