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:
parent
7b5c62982d
commit
483851b361
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user