Remove deprecated conversion from QKeySequence to QString
Change-Id: I3844913c16b9d6222f48e66dddc1d680458ffa56 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>bb10
parent
ce75529968
commit
5a6ee590a2
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue