diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/qcustomevent.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/qcustomevent.html')
-rw-r--r-- | doc/html/qcustomevent.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/qcustomevent.html b/doc/html/qcustomevent.html index 3c727fa22..18ee27c79 100644 --- a/doc/html/qcustomevent.html +++ b/doc/html/qcustomevent.html @@ -33,8 +33,8 @@ body { background: #ffffff; color: black; } <p>The TQCustomEvent class provides support for custom events. <a href="#details">More...</a> -<p><tt>#include <<a href="qevent-h.html">qevent.h</a>></tt> -<p>Inherits <a href="qevent.html">TQEvent</a>. +<p><tt>#include <<a href="qevent-h.html">ntqevent.h</a>></tt> +<p>Inherits <a href="ntqevent.html">TQEvent</a>. <p><a href="qcustomevent-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> @@ -49,10 +49,10 @@ body { background: #ffffff; color: black; } The TQCustomEvent class provides support for custom events. <p> <p> TQCustomEvent is a generic event class for user-defined events. -User defined events can be sent to widgets or other <a href="qobject.html">TQObject</a> -instances using <a href="qapplication.html#postEvent">TQApplication::postEvent</a>() or -<a href="qapplication.html#sendEvent">TQApplication::sendEvent</a>(). Subclasses of TQObject can easily -receive custom events by implementing the <a href="qobject.html#customEvent">TQObject::customEvent</a>() +User defined events can be sent to widgets or other <a href="ntqobject.html">TQObject</a> +instances using <a href="ntqapplication.html#postEvent">TQApplication::postEvent</a>() or +<a href="ntqapplication.html#sendEvent">TQApplication::sendEvent</a>(). Subclasses of TQObject can easily +receive custom events by implementing the <a href="ntqobject.html#customEvent">TQObject::customEvent</a>() event handler function. <p> TQCustomEvent objects should be created with a type ID that uniquely identifies the event type. To avoid clashes with the @@ -72,30 +72,30 @@ suitable for your event type. class ColorChangeEvent : public TQCustomEvent { public: - ColorChangeEvent( <a href="qcolor.html">TQColor</a> color ) + ColorChangeEvent( <a href="ntqcolor.html">TQColor</a> color ) : TQCustomEvent( 65432 ), c( color ) {} - <a href="qcolor.html">TQColor</a> color() const { return c; } + <a href="ntqcolor.html">TQColor</a> color() const { return c; } private: - <a href="qcolor.html">TQColor</a> c; + <a href="ntqcolor.html">TQColor</a> c; }; // To send an event of this custom event type: ColorChangeEvent* ce = new ColorChangeEvent( blue ); - TQApplication::<a href="qapplication.html#postEvent">postEvent</a>( receiver, ce ); // TQt will delete it when done + TQApplication::<a href="ntqapplication.html#postEvent">postEvent</a>( receiver, ce ); // TQt will delete it when done // To receive an event of this custom event type: void MyWidget::customEvent( TQCustomEvent * e ) { - if ( e-><a href="qevent.html#type">type</a>() == 65432 ) { // It must be a ColorChangeEvent + if ( e-><a href="ntqevent.html#type">type</a>() == 65432 ) { // It must be a ColorChangeEvent ColorChangeEvent* ce = (ColorChangeEvent*)e; newColor = ce->color(); } } </pre> -<p> <p>See also <a href="qobject.html#customEvent">TQWidget::customEvent</a>(), <a href="qapplication.html#notify">TQApplication::notify</a>(), and <a href="events.html">Event Classes</a>. +<p> <p>See also <a href="ntqobject.html#customEvent">TQWidget::customEvent</a>(), <a href="ntqapplication.html#notify">TQApplication::notify</a>(), and <a href="events.html">Event Classes</a>. <hr><h2>Member Function Documentation</h2> <h3 class=fn><a name="TQCustomEvent"></a>TQCustomEvent::TQCustomEvent ( int type ) @@ -104,7 +104,7 @@ Constructs a custom event object with event type <em>type</em>. The value of <em>type</em> must be at least as large as TQEvent::User. The data pointer is set to 0. -<h3 class=fn><a name="TQCustomEvent-2"></a>TQCustomEvent::TQCustomEvent ( <a href="qevent.html#Type-enum">Type</a> type, void * data ) +<h3 class=fn><a name="TQCustomEvent-2"></a>TQCustomEvent::TQCustomEvent ( <a href="ntqevent.html#Type-enum">Type</a> type, void * data ) </h3> <p> Constructs a custom event object with the event type <em>type</em> and a |