diff options
Diffstat (limited to 'doc/man/man3/tqkeysequence.3qt')
-rw-r--r-- | doc/man/man3/tqkeysequence.3qt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/man/man3/tqkeysequence.3qt b/doc/man/man3/tqkeysequence.3qt index e0dce7eea..d73e4ac95 100644 --- a/doc/man/man3/tqkeysequence.3qt +++ b/doc/man/man3/tqkeysequence.3qt @@ -19,7 +19,7 @@ Inherits Qt. .BI "\fBQKeySequence\fR ()" .br .ti -1c -.BI "\fBQKeySequence\fR ( const QString & key )" +.BI "\fBQKeySequence\fR ( const TQString & key )" .br .ti -1c .BI "\fBQKeySequence\fR ( int key )" @@ -43,7 +43,7 @@ Inherits Qt. .BI "Qt::SequenceMatch \fBmatches\fR ( const QKeySequence & seq ) const" .br .ti -1c -.BI "\fBoperator QString\fR () const" +.BI "\fBoperator TQString\fR () const" .br .ti -1c .BI "operator int () const \fI(obsolete)\fR" @@ -75,14 +75,14 @@ The QKeySequence class encapsulates a key sequence as used by accelerators. .PP A key sequence consists of up to four keyboard codes, each optionally combined with modifiers, e.g. SHIFT, CTRL, ALT, META, or UNICODE_ACCEL. For example, \fCCTRL + Key_P\fR might be a sequence used as a shortcut for printing a document. The key codes are listed in ntqnamespace.h. As an alternative, use UNICODE_ACCEL with the unicode code point of the character. For example, \fCUNICODE_ACCEL + 'A'\fR gives the same key sequence as Key_A. .PP -Key sequences can be constructed either from an integer key code, or from a human readable translatable string such as" Ctrl+X,Alt+Space". A key sequence can be cast to a QString to obtain a human readable translated version of the sequence. Translations are done in the "QAccel" context. +Key sequences can be constructed either from an integer key code, or from a human readable translatable string such as" Ctrl+X,Alt+Space". A key sequence can be cast to a TQString to obtain a human readable translated version of the sequence. Translations are done in the "QAccel" context. .PP See also QAccel and Miscellaneous Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QKeySequence::QKeySequence ()" Constructs an empty key sequence. -.SH "QKeySequence::QKeySequence ( const QString & key )" -Creates a key sequence from the string \fIkey\fR. For example" Ctrl+O" gives CTRL+UNICODE_ACCEL+'O'. The strings "Ctrl"," Shift", "Alt" and "Meta" are recognized, as well as their translated equivalents in the "QAccel" context (using QObject::tr()). +.SH "QKeySequence::QKeySequence ( const TQString & key )" +Creates a key sequence from the string \fIkey\fR. For example" Ctrl+O" gives CTRL+UNICODE_ACCEL+'O'. The strings "Ctrl"," Shift", "Alt" and "Meta" are recognized, as well as their translated equivalents in the "QAccel" context (using TQObject::tr()). .PP Multiple key codes (up to four) may be entered by separating them with commas, e.g. "Alt+X,Ctrl+S,Q". .PP @@ -117,8 +117,8 @@ Returns the number of keys in the key sequence. The maximum is 4. Returns TRUE if the key sequence is empty; otherwise returns FALSE. .SH "Qt::SequenceMatch QKeySequence::matches ( const QKeySequence & seq ) const" Matches the sequence with \fIseq\fR. Returns Qt::Identical if successful, Qt::PartialMatch for matching but incomplete \fIseq\fR, and Qt::NoMatch if the sequences have nothing in common. Returns Qt::NoMatch if \fIseq\fR is shorter. -.SH "QKeySequence::operator QString () const" -Creates an accelerator string for the key sequence. For instance CTRL+Key_O gives "Ctrl+O". If the key sequence has multiple key codes they are returned comma-separated, e.g." Alt+X, Ctrl+Y, Z". The strings, "Ctrl", "Shift", etc. are translated (using QObject::tr()) in the "QAccel" scope. If the key sequence has no keys, QString::null is returned. +.SH "QKeySequence::operator TQString () const" +Creates an accelerator string for the key sequence. For instance CTRL+Key_O gives "Ctrl+O". If the key sequence has multiple key codes they are returned comma-separated, e.g." Alt+X, Ctrl+Y, Z". The strings, "Ctrl", "Shift", etc. are translated (using TQObject::tr()) in the "QAccel" scope. If the key sequence has no keys, TQString::null is returned. .PP On Mac OS X, the string returned resembles the sequence that is shown in the menubar. .SH "QKeySequence::operator int () const" |