backport use of action->toolTip()

svn path=/branches/KDE/4.4/kdelibs/; revision=1097987
This commit is contained in:
Marco Martin 2010-03-02 15:28:36 +00:00
parent dcd17cf56a
commit c6033989ff

View File

@ -795,7 +795,7 @@ QSizeF IconWidgetPrivate::layoutText(QTextLayout &layout, const QStyleOptionGrap
if (size.width() > constraints.width() || size.height() > constraints.height()) {
if (action) {
q->setToolTip(KGlobal::locale()->removeAcceleratorMarker(action->text()));
q->setToolTip(action->toolTip());
}
const QString elided = elidedText(layout, option, constraints);
return layoutText(layout, elided, constraints.width());