* src/frontends/qt4/GuiPrefs.cpp:

* src/frontends/qt4/ui/PrefShortcutsUi.ui:
	- add/disambiguate key accelerators.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24123 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-04-05 10:46:48 +00:00
parent e7645f2439
commit 2704fa5466
2 changed files with 8 additions and 8 deletions

View File

@ -2185,9 +2185,9 @@ void PrefShortcuts::on_shortcutsTW_itemSelectionChanged()
item_type tag = static_cast<item_type>(items[0]->data(0, Qt::UserRole).toInt()); item_type tag = static_cast<item_type>(items[0]->data(0, Qt::UserRole).toInt());
if (tag == UserUnbind) if (tag == UserUnbind)
removePB->setText(qt_("Restore")); removePB->setText(qt_("Res&tore"));
else else
removePB->setText(qt_("Remove")); removePB->setText(qt_("Remo&ve"));
} }
@ -2242,7 +2242,7 @@ void PrefShortcuts::on_removePB_pressed()
// but add an user unbind item // but add an user unbind item
user_unbind_.bind(shortcut, func); user_unbind_.bind(shortcut, func);
setItemType(items[i], UserUnbind); setItemType(items[i], UserUnbind);
removePB->setText(qt_("Restore")); removePB->setText(qt_("Res&tore"));
break; break;
} }
case UserBind: { case UserBind: {
@ -2262,7 +2262,7 @@ void PrefShortcuts::on_removePB_pressed()
// become System again. // become System again.
user_unbind_.unbind(shortcut, func); user_unbind_.unbind(shortcut, func);
setItemType(items[i], System); setItemType(items[i], System);
removePB->setText(qt_("Remove")); removePB->setText(qt_("Remo&ve"));
break; break;
} }
case UserExtraUnbind: { case UserExtraUnbind: {

View File

@ -38,7 +38,7 @@
<item> <item>
<widget class="QLabel" name="shortcutsLBL" > <widget class="QLabel" name="shortcutsLBL" >
<property name="text" > <property name="text" >
<string>Show key-bindings containing:</string> <string>Show ke&amp;y-bindings containing:</string>
</property> </property>
<property name="buddy" > <property name="buddy" >
<cstring>searchLE</cstring> <cstring>searchLE</cstring>
@ -63,7 +63,7 @@
<item row="0" column="2" > <item row="0" column="2" >
<widget class="QPushButton" name="bindFilePB" > <widget class="QPushButton" name="bindFilePB" >
<property name="text" > <property name="text" >
<string>B&amp;rowse...</string> <string>Br&amp;owse...</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -97,14 +97,14 @@
<item> <item>
<widget class="QPushButton" name="removePB" > <widget class="QPushButton" name="removePB" >
<property name="text" > <property name="text" >
<string>&amp;Remove</string> <string>Remo&amp;ve</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="newPB" > <widget class="QPushButton" name="newPB" >
<property name="text" > <property name="text" >
<string>New</string> <string>Ne&amp;w</string>
</property> </property>
</widget> </widget>
</item> </item>