don't jiggle
BUG:202949 svn path=/trunk/KDE/kdelibs/; revision=1129021
This commit is contained in:
parent
67b79a816c
commit
2d1fe7b138
@ -1211,8 +1211,10 @@ void IconWidget::setText(const QString &text)
|
|||||||
QStyleOptionGraphicsItem styleoption;
|
QStyleOptionGraphicsItem styleoption;
|
||||||
d->layoutIcons(&styleoption);
|
d->layoutIcons(&styleoption);
|
||||||
}
|
}
|
||||||
resize(sizeFromIconSize(d->iconSize.width()));
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
if (!parentWidget() || !parentWidget()->layout()) {
|
||||||
|
resize(preferredSize());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString IconWidget::text() const
|
QString IconWidget::text() const
|
||||||
@ -1230,8 +1232,10 @@ void IconWidget::setInfoText(const QString &text)
|
|||||||
QStyleOptionGraphicsItem styleoption;
|
QStyleOptionGraphicsItem styleoption;
|
||||||
d->layoutIcons(&styleoption);
|
d->layoutIcons(&styleoption);
|
||||||
}
|
}
|
||||||
resize(sizeFromIconSize(d->iconSize.width()));
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
if (!parentWidget() || !parentWidget()->layout()) {
|
||||||
|
resize(preferredSize());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString IconWidget::infoText() const
|
QString IconWidget::infoText() const
|
||||||
|
Loading…
Reference in New Issue
Block a user