Make the icon adjust its size when the text changes.
CCMAIL: panel-devel@kde.org Please backport. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838892
This commit is contained in:
parent
42018972e6
commit
5bda02b4c3
@ -974,7 +974,10 @@ void Icon::setText(const QString& text)
|
||||
{
|
||||
d->text = text;
|
||||
// cause a relayout
|
||||
// FIXME: is invalidating d->currentSize really necessary?
|
||||
// FIXME: is d->currentSize really necessary at all?
|
||||
d->currentSize = QSizeF(-1, -1);
|
||||
resize(sizeFromIconSize(d->iconSize.width()));
|
||||
}
|
||||
|
||||
QString Icon::text() const
|
||||
@ -986,7 +989,10 @@ void Icon::setInfoText(const QString& text)
|
||||
{
|
||||
d->infoText = text;
|
||||
// cause a relayout
|
||||
// FIXME: is invalidating d->currentSize really necessary?
|
||||
// FIXME: is d->currentSize really necessary at all?
|
||||
d->currentSize = QSizeF(-1, -1);
|
||||
resize(sizeFromIconSize(d->iconSize.width()));
|
||||
}
|
||||
|
||||
QString Icon::infoText() const
|
||||
|
Loading…
Reference in New Issue
Block a user