diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-12-02 16:18:29 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:47:55 -0300 |
commit | 0220d7d1768353f062ef7af10845686f1327923e (patch) | |
tree | fc112638305fd72d123c67de94416cb3a8a852c3 /doc/codesnippets/doc/src/snippets/timers/timers.cpp | |
parent | 9edc8a3834c9ba067b255b9996d59a473df6ef18 (diff) |
Updated a lot of code snippets on documentation concerning QtCore module.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'doc/codesnippets/doc/src/snippets/timers/timers.cpp')
-rw-r--r-- | doc/codesnippets/doc/src/snippets/timers/timers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/codesnippets/doc/src/snippets/timers/timers.cpp b/doc/codesnippets/doc/src/snippets/timers/timers.cpp index 3e5e1ace7..9a0587072 100644 --- a/doc/codesnippets/doc/src/snippets/timers/timers.cpp +++ b/doc/codesnippets/doc/src/snippets/timers/timers.cpp @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include <QTimer> +from PySide.QtCore import QTimer class Foo : public QObject { @@ -52,7 +52,7 @@ Foo::Foo() //! [0] timer = QTimer(self) //! [0] //! [1] - self.connect(timer, SIGNAL("timeout()"), self.updateCaption) + timer.timeout.connect(self.updateCaption) //! [1] //! [2] timer.start(1000) //! [2] @@ -66,7 +66,7 @@ Foo::Foo() //! [4] timer = QTimer(self) //! [4] //! [5] - self.connect(timer, SIGNAL("timeout()"), self.processOneThing) + timer.timeout.connect(self.processOneThing) //! [5] //! [6] timer.start() //! [6] @@ -75,5 +75,5 @@ Foo::Foo() int main() { - + } |