Training: define key accelerators for the main buttons

This commit is contained in:
Olivier Teulière 2012-10-05 14:54:29 +02:00
parent 1232eda206
commit e4f9c03ca7
2 changed files with 5 additions and 5 deletions

View file

@ -734,7 +734,7 @@ void MainWindow::createMenu()
QMenu *menuHelp = new QMenu(m_ui.menubar); QMenu *menuHelp = new QMenu(m_ui.menubar);
m_ui.menubar->addAction(menuHelp->menuAction()); m_ui.menubar->addAction(menuHelp->menuAction());
menuHelp->setTitle(_q("Hel&p")); menuHelp->setTitle(_q("He&lp"));
addMenuAction(menuHelp, _q("&About..."), QString(""), addMenuAction(menuHelp, _q("&About..."), QString(""),
_q("About Eliot"), SLOT(onHelpAbout()), _q("About Eliot"), SLOT(onHelpAbout()),
false, QIcon(":/images/info_16px.png")); false, QIcon(":/images/info_16px.png"));

View file

@ -116,14 +116,14 @@
<item> <item>
<widget class="QPushButton" name="pushButtonRack"> <widget class="QPushButton" name="pushButtonRack">
<property name="text"> <property name="text">
<string>_(&quot;New rack&quot;)</string> <string>_(&quot;&amp;New rack&quot;)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButtonComplement"> <widget class="QPushButton" name="pushButtonComplement">
<property name="text"> <property name="text">
<string>_(&quot;Complement&quot;)</string> <string>_(&quot;&amp;Complement&quot;)</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -133,7 +133,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text">
<string>_(&quot;Search&quot;)</string> <string>_(&quot;Sea&amp;rch&quot;)</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -143,7 +143,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text">
<string>_(&quot;Play selected&quot;)</string> <string>_(&quot;&amp;Play selected&quot;)</string>
</property> </property>
</widget> </widget>
</item> </item>