trigger a re-calc of the icon size when text is set. fixes icon presentation on reload at startup

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758190
This commit is contained in:
Aaron J. Seigo 2008-01-07 05:09:09 +00:00
parent 7b5c62982d
commit 483851b361

View File

@ -894,6 +894,8 @@ void Icon::drawActionButtonBase(QPainter* painter, const QSize &size, int elemen
void Icon::setText(const QString& text)
{
d->text = text;
// cause a relayout
d->currentSize = QSizeF(-1, -1);
}
QString Icon::text() const
@ -904,6 +906,8 @@ QString Icon::text() const
void Icon::setInfoText(const QString& text)
{
d->infoText = text;
// cause a relayout
d->currentSize = QSizeF(-1, -1);
}
QString Icon::infoText() const