summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/doc/src/snippets/code/src_qt3support_tools_q3signal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/codesnippets/doc/src/snippets/code/src_qt3support_tools_q3signal.cpp')
-rw-r--r--doc/codesnippets/doc/src/snippets/code/src_qt3support_tools_q3signal.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/doc/codesnippets/doc/src/snippets/code/src_qt3support_tools_q3signal.cpp b/doc/codesnippets/doc/src/snippets/code/src_qt3support_tools_q3signal.cpp
deleted file mode 100644
index 7793ba2..0000000
--- a/doc/codesnippets/doc/src/snippets/code/src_qt3support_tools_q3signal.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-//! [0]
-#include <q3signal.h>
-
-class MyClass
-{
-public:
- MyClass();
- ~MyClass();
-
- void doSomething();
-
- void connect(QObject *receiver, const char *member);
-
-private:
- Q3Signal *sig;
-};
-
-MyClass::MyClass()
-{
- sig = new Q3Signal;
-}
-
-MyClass::~MyClass()
-{
- delete sig;
-}
-
-void MyClass::doSomething()
-{
- // ... does something
- sig->activate(); // emits the signal
-}
-
-void MyClass::connect(QObject *receiver, const char *member)
-{
- sig->connect(receiver, member);
-}
-//! [0]