Memory leak.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845526
This commit is contained in:
parent
8f5f4d8294
commit
1eecd3f819
@ -978,7 +978,8 @@ void Icon::setText(const QString& text)
|
|||||||
d->currentSize = QSizeF(-1, -1);
|
d->currentSize = QSizeF(-1, -1);
|
||||||
//try to relayout, needed if an icon was never shown before
|
//try to relayout, needed if an icon was never shown before
|
||||||
if (!isVisible()) {
|
if (!isVisible()) {
|
||||||
layoutIcons(new QStyleOptionGraphicsItem);
|
QStyleOptionGraphicsItem styleoption;
|
||||||
|
layoutIcons(&styleoption);
|
||||||
}
|
}
|
||||||
resize(sizeFromIconSize(d->iconSize.width()));
|
resize(sizeFromIconSize(d->iconSize.width()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user