Use unique shortcuts for the different actions
Change-Id: Ibc143ffac83dfb30facc9e93651e5f18550ab612 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
This commit is contained in:
parent
1641a9ae43
commit
faf4865b80
@ -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()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user