[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9205 - trunk/gnue-forms/src/uidrivers/qt3/widgets
From: |
johannes |
Subject: |
[gnue] r9205 - trunk/gnue-forms/src/uidrivers/qt3/widgets |
Date: |
Fri, 5 Jan 2007 02:44:11 -0600 (CST) |
Author: johannes
Date: 2007-01-05 02:44:10 -0600 (Fri, 05 Jan 2007)
New Revision: 9205
Modified:
trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py
Log:
Fixed toggling of checkbox if they were clicked while another entry had
the focus.
Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py 2007-01-05 08:02:14 UTC
(rev 9204)
+++ trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py 2007-01-05 08:44:10 UTC
(rev 9205)
@@ -595,6 +595,11 @@
qt.QCheckBox.__init__(self, ui_widget._gfObject.label, parent)
BaseEntry.__init__(self, ui_widget, qt.QCheckBox)
self.setTristate(True)
+ # We have to set both TabFocus and ClickFocus for this widget,
+ # otherwise the checkbox won't request the focus-change on clicking
+ # into it using the mouse. This is needed to enable the GFInstance to
+ # process the TOGGLECHKBOX request
+ self.setFocusPolicy(qt.QWidget.StrongFocus)
self._blocked_ = False
self.connect(self, qt.SIGNAL('toggled(bool)'), self.__on_toggled)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9205 - trunk/gnue-forms/src/uidrivers/qt3/widgets,
johannes <=