diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-03-02 14:35:55 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:01 -0300 |
commit | e0799d7dcf6d768ae773579153c43f532d1ed7b8 (patch) | |
tree | 5ff008b9df3efb3c93c11a2a1ad737135ba564a7 /doc | |
parent | 11a7187cf8c511ab5ddb7b9bbc36243834bf5a58 (diff) |
Fix bug#708 - "Remaining pyqtSignal in ref docs"
Diffstat (limited to 'doc')
-rw-r--r-- | doc/extras/PySide.QtCore.Signal.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/extras/PySide.QtCore.Signal.rst b/doc/extras/PySide.QtCore.Signal.rst index 441473eca..a0318d412 100644 --- a/doc/extras/PySide.QtCore.Signal.rst +++ b/doc/extras/PySide.QtCore.Signal.rst @@ -60,7 +60,7 @@ Defining New Signals with QtCore.Signal() # The following will create exactly the same overloaded signal as # above and demonstrates the use of C++ type names instead of Python # type objects, and lists instead of tuples. - valueChanged = QtCore.pyqtSignal(['int'], ['unicode']) + valueChanged = QtCore.Signal(['int'], ['unicode']) New signals should only be defined in sub-classes of QObject. @@ -79,7 +79,7 @@ Connecting, Disconnecting and Emitting Signals class Foo(QtCore.QObject): # Define a new signal called 'trigger' that has no arguments. - trigger = QtCore.pyqtSignal() + trigger = QtCore.Signal() def connect_and_emit_trigger(self): # Connect the trigger signal to a slot. @@ -101,8 +101,7 @@ Connecting, Disconnecting and Emitting Signals class Bar(QtGui.QComboBox): def connect_activated(self): - # The PyQt documentation will define what the default overload is. - # In this case it is the overload with the single integer argument. + # Avoid using default overloads, they are not safe and can change in the future. self.activated.connect(self.handle_int) # For non-default overloads we have to specify which we want to |