diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-05-25 20:47:06 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-05-27 08:30:53 (GMT) |
commit | 0ea19cf01e2381969a8b8ce8cdaffe9ce873d3a9 (patch) | |
tree | 366d238fbd75b808de8aa7b701351f225a7e79dc /doc/src/qnamespace.qdoc | |
parent | 5e14efa547ffac5890b008ad23e9ff0bc634a3e1 (diff) | |
download | Qt-0ea19cf01e2381969a8b8ce8cdaffe9ce873d3a9.zip Qt-0ea19cf01e2381969a8b8ce8cdaffe9ce873d3a9.tar.gz Qt-0ea19cf01e2381969a8b8ce8cdaffe9ce873d3a9.tar.bz2 |
Add a flag that ensure that a connection is made only one
It is often desirable, when doing connection, to ensure that the same
connection is only made once. This can be done with the
Qt::UniqueConnection 'flag'
Also documented the order the slot are called
Reviewed-by: Brad
Diffstat (limited to 'doc/src/qnamespace.qdoc')
-rw-r--r-- | doc/src/qnamespace.qdoc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/qnamespace.qdoc b/doc/src/qnamespace.qdoc index fc4310b..069541f 100644 --- a/doc/src/qnamespace.qdoc +++ b/doc/src/qnamespace.qdoc @@ -528,6 +528,10 @@ Qt::DirectConnection; otherwise the signal is queued, as with Qt::QueuedConnection. + \value UniqueConnection Same as AutoConnection, but there will be a check that the signal is + not already connected to the same slot before connecting, otherwise, + the connection will fail. + \since 4.6 With queued connections, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them |