Use unique shortcuts for the different actions

Change-Id: Ibc143ffac83dfb30facc9e93651e5f18550ab612
Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
This commit is contained in:
Andy Shaw 2015-12-04 12:10:48 +01:00
parent 1641a9ae43
commit faf4865b80

View File

@ -389,7 +389,7 @@ void MainWindow::createActions()
//! [23]
sendBackAction = new QAction(QIcon(":/images/sendtoback.png"), tr("Send to &Back"), this);
sendBackAction->setShortcut(tr("Ctrl+B"));
sendBackAction->setShortcut(tr("Ctrl+T"));
sendBackAction->setStatusTip(tr("Send item to back"));
connect(sendBackAction, SIGNAL(triggered()), this, SLOT(sendToBack()));
@ -421,7 +421,7 @@ void MainWindow::createActions()
connect(underlineAction, SIGNAL(triggered()), this, SLOT(handleFontChange()));
aboutAction = new QAction(tr("A&bout"), this);
aboutAction->setShortcut(tr("Ctrl+B"));
aboutAction->setShortcut(tr("F1"));
connect(aboutAction, SIGNAL(triggered()), this, SLOT(about()));
}