style fix and remove the extra assignment.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755558
This commit is contained in:
Aaron J. Seigo 2008-01-01 20:53:46 +00:00
parent 94f0955d99
commit d5c9ab0cf6

View File

@ -413,9 +413,9 @@ QSizeF Icon::Private::displaySizeHint(const QStyleOptionGraphicsItem *option, co
// To compute the nominal size for the label + info, we'll just append
// the information string to the label
const QString info = infoText;
if (!info.isEmpty())
label += QString(QChar::LineSeparator) + info;
if (!infoText.isEmpty()) {
label += QString(QChar::LineSeparator) + infoText;
}
QTextLayout layout;
setLayoutOptions(layout, option);