[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: KDE/kdebase/workspace/libs/plasma/widgets
From: Alex Merry <huntedhacker () tiscali ! co ! uk>
Date: 2008-07-29 0:29:00
Message-ID: 1217291340.597684.876.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 838892 by alexmerry:
Make the icon adjust its size when the text changes.
CCMAIL: panel-devel@kde.org
Please backport.
M +6 -0 icon.cpp
--- trunk/KDE/kdebase/workspace/libs/plasma/widgets/icon.cpp #838891:838892
@@ -974,7 +974,10 @@
{
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 @@
{
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
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic