we don't want acelerator markers in tooltips

svn path=/trunk/KDE/kdelibs/; revision=1097929
This commit is contained in:
Marco Martin 2010-03-02 13:02:51 +00:00
parent 514541cb6c
commit 3408ebe777

View File

@ -840,7 +840,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());