backport accelerator markers removal in tooltips

svn path=/branches/KDE/4.4/kdelibs/; revision=1097930
This commit is contained in:
Marco Martin 2010-03-02 13:03:40 +00:00
parent 435e78e93e
commit dcd17cf56a

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(action->text());
q->setToolTip(KGlobal::locale()->removeAcceleratorMarker(action->text()));
}
const QString elided = elidedText(layout, option, constraints);
return layoutText(layout, elided, constraints.width());