indexOf fixed

This commit is contained in:
Uwe Rathmann 2019-11-29 16:15:13 +01:00
parent e9a8c0bc7f
commit 86293a65f1

View File

@ -104,7 +104,7 @@ QQuickItem* QskStackBox::itemAtIndex( int index ) const
int QskStackBox::indexOf( const QQuickItem* item ) const
{
if ( item && ( item->parentItem() != this ) )
if ( item && ( item->parentItem() == this ) )
{
for ( int i = 0; i < m_data->items.count(); i++ )
{