diff options
Diffstat (limited to 'doc/object.doc')
-rw-r--r-- | doc/object.doc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/object.doc b/doc/object.doc index 027d8371c..2df02d368 100644 --- a/doc/object.doc +++ b/doc/object.doc @@ -453,7 +453,7 @@ application program. TQt is symmetric, as usual, so you can send events in exactly the same ways as Qt's own event loop does. Most events types have special classes, most commonly \l QResizeEvent, -\l TQPaintEvent, \l QMouseEvent, \l QKeyEvent and \l TQCloseEvent. +\l TQPaintEvent, \l QMouseEvent, \l TQKeyEvent and \l TQCloseEvent. There are many others, perhaps forty or so, but most are rather odd. Each class subclasses TQEvent and adds event-specific functions; see, @@ -503,7 +503,7 @@ contain: \code bool MyClass:event( TQEvent *evt ) { if ( evt->type() == TQEvent::KeyPress ) { - QKeyEvent *ke = (QKeyEvent *)evt; + TQKeyEvent *ke = (TQKeyEvent *)evt; if ( ke->key() == Key_Tab ) { // special tab handling here ke->accept(); |