Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
#ifndef QT_NO_SHORTCUT
case Accelerator:
if (child == OpenList)
- str = (QString)QKeySequence(Qt::Key_Down);
+ str = QKeySequence(Qt::Key_Down).toString();
break;
#endif
default:
return child ? menu()->actions().at(child-1)->whatsThis() : tx;
#ifndef QT_NO_SHORTCUT
case Accelerator:
- return child ? static_cast<QString>(menu()->actions().at(child-1)->shortcut()) : tx;
+ return child ? menu()->actions().at(child-1)->shortcut().toString() : tx;
#endif
default:
break;
#ifndef QT_NO_SHORTCUT
QPushButton *pb = qobject_cast<QPushButton*>(object());
if (pb && pb->isDefault())
- str = (QString)QKeySequence(Qt::Key_Enter);
+ str = QKeySequence(Qt::Key_Enter).toString();
#endif
if (str.isEmpty())
str = qt_accHotKey(button()->text());