// show keyboard shortcuts in the status bar
if (!action->shortcut().isEmpty())
- action->setStatusTip(action->statusTip() + " (" + action->shortcut().toString() + ")");
+ action->setStatusTip(action->statusTip() + " (" + action->shortcut().toString(QKeySequence::NativeText) + ")");
// make the actions work when video is fullscreen
action->setShortcutContext(Qt::ApplicationShortcut);
pauseAct->setEnabled(true);
pauseAct->setIcon(QtIconLoader::icon("media-pause", QIcon(":/images/pause.png")));
pauseAct->setText(tr("&Pause"));
- pauseAct->setStatusTip(tr("Pause playback") + " (" + pauseAct->shortcut().toString() + ")");
+ pauseAct->setStatusTip(tr("Pause playback") + " (" + pauseAct->shortcut().toString(QKeySequence::NativeText) + ")");
skipAct->setEnabled(true);
break;
pauseAct->setEnabled(true);
pauseAct->setIcon(QtIconLoader::icon("media-play", QIcon(":/images/play.png")));
pauseAct->setText(tr("&Play"));
- pauseAct->setStatusTip(tr("Resume playback") + " (" + pauseAct->shortcut().toString() + ")");
+ pauseAct->setStatusTip(tr("Resume playback") + " (" + pauseAct->shortcut().toString(QKeySequence::NativeText) + ")");
break;
case Phonon::BufferingState:
mostRelevantAction = new QAction(tr("Most relevant"), this);
QKeySequence keySequence(Qt::CTRL + Qt::Key_1);
mostRelevantAction->setShortcut(keySequence);
- mostRelevantAction->setStatusTip(keySequence.toString());
+ mostRelevantAction->setStatusTip(keySequence.toString(QKeySequence::NativeText));
addAction(mostRelevantAction);
connect(mostRelevantAction, SIGNAL(triggered()), this, SLOT(searchMostRelevant()), Qt::QueuedConnection);
sortBar->addAction(mostRelevantAction);
mostRecentAction = new QAction(tr("Most recent"), this);
keySequence = QKeySequence(Qt::CTRL + Qt::Key_2);
mostRecentAction->setShortcut(keySequence);
- mostRecentAction->setStatusTip(keySequence.toString());
+ mostRecentAction->setStatusTip(keySequence.toString(QKeySequence::NativeText));
addAction(mostRecentAction);
connect(mostRecentAction, SIGNAL(triggered()), this, SLOT(searchMostRecent()), Qt::QueuedConnection);
sortBar->addAction(mostRecentAction);
mostViewedAction = new QAction(tr("Most viewed"), this);
keySequence = QKeySequence(Qt::CTRL + Qt::Key_3);
mostViewedAction->setShortcut(keySequence);
- mostViewedAction->setStatusTip(keySequence.toString());
+ mostViewedAction->setStatusTip(keySequence.toString(QKeySequence::NativeText));
addAction(mostViewedAction);
connect(mostViewedAction, SIGNAL(triggered()), this, SLOT(searchMostViewed()), Qt::QueuedConnection);
sortBar->addAction(mostViewedAction);