Author: johannes
Date: 2007-04-25 09:28:04 -0500 (Wed, 25 Apr 2007)
New Revision: 9515
Modified:
trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py
Log:
Handle TAB-Traversal properly. This fixes focusorder in grids
Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py 2007-04-25 13:57:02 UTC
(rev 9514)
+++ trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py 2007-04-25 14:28:04 UTC
(rev 9515)
@@ -339,6 +339,22 @@
# -------------------------------------------------------------------------
+ # Capture handling of focus movement
+ # -------------------------------------------------------------------------
+
+ def focusNextPrevChild(self, next):
+ """
+ Send a next- or prev-entry request to the GFForm
+ """
+ if next:
+ self.ui_widget._request('NEXTENTRY')
+ else:
+ self.ui_widget._request('PREVENTRY')
+
+ return True
+
+
+ # -------------------------------------------------------------------------
# Event-Handler
# -------------------------------------------------------------------------
@@ -356,6 +372,7 @@
state & qt.QKeyEvent.ControlButton > 0,
state & qt.QKeyEvent.AltButton > 0)
+ print "COMMAND:", command
if command:
if command == 'NEWLINE':
self.ui_widget._request(command, text = '\n')
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue