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

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

View File

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

View File

@ -116,10 +116,13 @@ public:
} }
~PrivateData() ~PrivateData()
{
if ( hasLocalSkinlet )
{ {
if ( skinlet && skinlet->isOwnedBySkinnable() ) if ( skinlet && skinlet->isOwnedBySkinnable() )
delete skinlet; delete skinlet;
} }
}
QskSkinHintTable hintTable; QskSkinHintTable hintTable;
QskHintAnimatorTable animators; QskHintAnimatorTable animators;