equal
deleted
inserted
replaced
246 //![16] |
246 //![16] |
247 |
247 |
248 void MainWindow::setupActions() |
248 void MainWindow::setupActions() |
249 { |
249 { |
250 playAction = new QAction(style()->standardIcon(QStyle::SP_MediaPlay), tr("Play"), this); |
250 playAction = new QAction(style()->standardIcon(QStyle::SP_MediaPlay), tr("Play"), this); |
251 playAction->setShortcut(tr("Crl+P")); |
251 playAction->setShortcut(tr("Ctrl+P")); |
252 playAction->setDisabled(true); |
252 playAction->setDisabled(true); |
253 pauseAction = new QAction(style()->standardIcon(QStyle::SP_MediaPause), tr("Pause"), this); |
253 pauseAction = new QAction(style()->standardIcon(QStyle::SP_MediaPause), tr("Pause"), this); |
254 pauseAction->setShortcut(tr("Ctrl+A")); |
254 pauseAction->setShortcut(tr("Ctrl+A")); |
255 pauseAction->setDisabled(true); |
255 pauseAction->setDisabled(true); |
256 stopAction = new QAction(style()->standardIcon(QStyle::SP_MediaStop), tr("Stop"), this); |
256 stopAction = new QAction(style()->standardIcon(QStyle::SP_MediaStop), tr("Stop"), this); |