From f4887a6e5161c894f9dd1480463aab79b9e54de8 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Wed, 18 Sep 2019 08:56:16 +0200 Subject: [PATCH] checks added --- src/layouts/QskLinearBox.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/layouts/QskLinearBox.cpp b/src/layouts/QskLinearBox.cpp index ea3f533e..b7667f7d 100644 --- a/src/layouts/QskLinearBox.cpp +++ b/src/layouts/QskLinearBox.cpp @@ -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 )