summaryrefslogtreecommitdiffstats
path: root/doc/html/qaccel.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qaccel.html')
-rw-r--r--doc/html/qaccel.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/html/qaccel.html b/doc/html/qaccel.html
index b7c1dd7f6..e7e725a89 100644
--- a/doc/html/qaccel.html
+++ b/doc/html/qaccel.html
@@ -180,7 +180,7 @@ Removes all accelerator items.
</h3>
Connects the accelerator item <em>id</em> to the slot <em>member</em> of <em>receiver</em>.
<p> <pre>
- a-&gt;connectItem( 201, mainView, SLOT(tquit()) );
+ a-&gt;connectItem( 201, mainView, SLOT(quit()) );
</pre>
<p> Of course, you can also send a signal as <em>member</em>.
@@ -221,8 +221,8 @@ negative identifier less than -1.
<p> <pre>
TQAccel *a = new TQAccel( myWindow ); // create accels for myWindow
a-&gt;<a href="#insertItem">insertItem</a>( CTRL + Key_P, 200 ); // Ctrl+P, e.g. to print document
- a-&gt;<a href="#insertItem">insertItem</a>( ALT + Key_X, 201 ); // Alt+X, e.g. to tquit
- a-&gt;<a href="#insertItem">insertItem</a>( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to tquit
+ a-&gt;<a href="#insertItem">insertItem</a>( ALT + Key_X, 201 ); // Alt+X, e.g. to quit
+ a-&gt;<a href="#insertItem">insertItem</a>( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to quit
a-&gt;<a href="#insertItem">insertItem</a>( <a href="qt.html#Key-enum">Key_D</a> ); // gets a unique negative id &lt; -1
a-&gt;<a href="#insertItem">insertItem</a>( CTRL + SHIFT + Key_P ); // gets a unique negative id &lt; -1
</pre>