Author: johannes
Date: 2006-10-12 03:25:07 -0500 (Thu, 12 Oct 2006)
New Revision: 8763
Modified:
trunk/gnue-forms/src/uidrivers/qt3/MenuBar.py
Log:
Fixed handling of hotkeys (so the do work now :)
Modified: trunk/gnue-forms/src/uidrivers/qt3/MenuBar.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/MenuBar.py 2006-10-12 08:13:09 UTC
(rev 8762)
+++ trunk/gnue-forms/src/uidrivers/qt3/MenuBar.py 2006-10-12 08:25:07 UTC
(rev 8763)
@@ -82,7 +82,7 @@
hotkey = userAction.getHotKeyText()
iconloc = userAction.getIconLocation(size="16x16")
- label = hotkey and "%s\t%s" % (name, hotkey) or name
+ label = name
# Set the action icon if available
if iconloc:
@@ -92,6 +92,9 @@
else:
mid = parent.insertItem(label)
+ if hotkey:
+ parent.setAccel(qt.QKeySequence(hotkey), mid)
+
parent.setWhatsThis(mid, userAction.description or '')
self.__idmap[mid] = userAction
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue