memory problems fixed

This commit is contained in:
Uwe Rathmann 2017-12-08 13:56:35 +01:00
parent 5a8d633239
commit 920ed2232c
3 changed files with 13 additions and 4 deletions

View File

@ -1107,8 +1107,11 @@ void QskControl::itemChange( QQuickItem::ItemChange change,
{
case QQuickItem::ItemParentHasChanged:
{
if ( !d->explicitLocale )
qskResolveLocale( this );
if ( value.item )
{
if ( !d->explicitLocale )
qskResolveLocale( this );
}
// not necessarily correct, when parent != parentItem ???
qskSendEventTo( this, QEvent::ParentChange );

View File

@ -178,6 +178,9 @@ static qreal qskRowStretch( const QskInputPanel::KeyRow& keyRow )
stretch += qskKeyStretch( key );
}
if ( stretch == 0.0 )
stretch = QskInputPanel::KeyCount;
return stretch;
}

View File

@ -117,8 +117,11 @@ public:
~PrivateData()
{
if ( skinlet && skinlet->isOwnedBySkinnable() )
delete skinlet;
if ( hasLocalSkinlet )
{
if ( skinlet && skinlet->isOwnedBySkinnable() )
delete skinlet;
}
}
QskSkinHintTable hintTable;