diff options
Diffstat (limited to 'doc/html/tqaccel.html')
-rw-r--r-- | doc/html/tqaccel.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/html/tqaccel.html b/doc/html/tqaccel.html index b682436da..431dc906f 100644 --- a/doc/html/tqaccel.html +++ b/doc/html/tqaccel.html @@ -99,9 +99,9 @@ Example: manipulated using <a href="#insertItem">insertItem</a>(), <a href="#removeItem">removeItem</a>(), <a href="#clear">clear</a>(), <a href="#key">key</a>() and <a href="#findKey">findKey</a>(). <p> Each accelerator item consists of an identifier and a <a href="tqkeysequence.html">TQKeySequence</a>. A single key sequence consists of a keyboard code -combined with modifiers (<a href="ntqt.html#Modifier-enum">SHIFT</a>, <a href="ntqt.html#Modifier-enum">CTRL</a>, <a href="ntqt.html#Modifier-enum">ALT</a> or <a href="ntqt.html#Modifier-enum">UNICODE_ACCEL</a>). For example, <tt>CTRL + Key_P</tt> could be a shortcut -for printing a document. The key codes are listed in <a href="tqnamespace-h.html">tqnamespace.h</a>. As an alternative, use <a href="ntqt.html#Modifier-enum">UNICODE_ACCEL</a> with the -unicode code point of the character. For example, <tt>UNICODE_ACCEL + 'A'</tt> gives the same accelerator as <a href="ntqt.html#Key-enum">Key_A</a>. +combined with modifiers (<a href="tqt.html#Modifier-enum">SHIFT</a>, <a href="tqt.html#Modifier-enum">CTRL</a>, <a href="tqt.html#Modifier-enum">ALT</a> or <a href="tqt.html#Modifier-enum">UNICODE_ACCEL</a>). For example, <tt>CTRL + Key_P</tt> could be a shortcut +for printing a document. The key codes are listed in <a href="tqnamespace-h.html">tqnamespace.h</a>. As an alternative, use <a href="tqt.html#Modifier-enum">UNICODE_ACCEL</a> with the +unicode code point of the character. For example, <tt>UNICODE_ACCEL + 'A'</tt> gives the same accelerator as <a href="tqt.html#Key-enum">Key_A</a>. <p> When an accelerator key is pressed, the accelerator sends out the signal <a href="#activated">activated</a>() with a number that identifies this particular accelerator item. Accelerator items can also be individually @@ -223,7 +223,7 @@ negative identifier less than -1. a-><a href="#insertItem">insertItem</a>( CTRL + Key_P, 200 ); // Ctrl+P, e.g. to print document a-><a href="#insertItem">insertItem</a>( ALT + Key_X, 201 ); // Alt+X, e.g. to quit a-><a href="#insertItem">insertItem</a>( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to quit - a-><a href="#insertItem">insertItem</a>( <a href="ntqt.html#Key-enum">Key_D</a> ); // gets a unique negative id < -1 + a-><a href="#insertItem">insertItem</a>( <a href="tqt.html#Key-enum">Key_D</a> ); // gets a unique negative id < -1 a-><a href="#insertItem">insertItem</a>( CTRL + SHIFT + Key_P ); // gets a unique negative id < -1 </pre> |