summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-02 14:35:55 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-03-02 14:35:55 -0300
commit2ed86dc43538536718ad9592eb47e03d2674a8a7 (patch)
tree08d1769614a5da4a87e4884a76dd3d3bef232d02
parent8ac29700ce8419ea6a4f6b70186cd9dfea208ba8 (diff)
downloadpyside-2ed86dc43538536718ad9592eb47e03d2674a8a7.tar.gz
pyside-2ed86dc43538536718ad9592eb47e03d2674a8a7.tar.xz
pyside-2ed86dc43538536718ad9592eb47e03d2674a8a7.zip
Fix bug#708 - "Remaining pyqtSignal in ref docs"
-rw-r--r--doc/extras/PySide.QtCore.Signal.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/extras/PySide.QtCore.Signal.rst b/doc/extras/PySide.QtCore.Signal.rst
index 441473e..a0318d4 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