Remove deprecated conversion from QKeySequence to QString

Change-Id: I3844913c16b9d6222f48e66dddc1d680458ffa56
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
bb10
Olivier Goffart 2012-04-20 15:08:11 +02:00 committed by Qt by Nokia
parent ce75529968
commit 5a6ee590a2
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ QString QAccessibleComboBox::text(QAccessible::Text t) const
break;
#ifndef QT_NO_SHORTCUT
case QAccessible::Accelerator:
str = (QString)QKeySequence(Qt::Key_Down);
str = QKeySequence(Qt::Key_Down).toString(QKeySequence::NativeText);
break;
#endif
default:

View File

@ -147,7 +147,7 @@ QString Q_WIDGETS_EXPORT qt_accHotKey(const QString &text)
{
int ampIndex = qt_accAmpIndex(text);
if (ampIndex != -1)
return (QString)QKeySequence(Qt::ALT) + text.at(ampIndex + 1);
return QKeySequence(Qt::ALT).toString(QKeySequence::NativeText) + text.at(ampIndex + 1);
return QString();
}