diff options
Diffstat (limited to 'doc/man/man3/tqtextedit.3qt')
-rw-r--r-- | doc/man/man3/tqtextedit.3qt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/man/man3/tqtextedit.3qt b/doc/man/man3/tqtextedit.3qt index c6ffa2dff..a33447d8e 100644 --- a/doc/man/man3/tqtextedit.3qt +++ b/doc/man/man3/tqtextedit.3qt @@ -90,7 +90,7 @@ Inherited by QMultiLineEdit, TQTextBrowser, and TQTextView. .BI "int \fBparagraphLength\fR ( int para ) const" .br .ti -1c -.BI "QStyleSheet * \fBstyleSheet\fR () const" +.BI "TQStyleSheet * \fBstyleSheet\fR () const" .br .ti -1c .BI "QMimeSourceFactory * \fBmimeSourceFactory\fR () const" @@ -201,7 +201,7 @@ Inherited by QMultiLineEdit, TQTextBrowser, and TQTextView. .BI "virtual void \fBsetMimeSourceFactory\fR ( QMimeSourceFactory * factory )" .br .ti -1c -.BI "virtual void \fBsetStyleSheet\fR ( QStyleSheet * styleSheet )" +.BI "virtual void \fBsetStyleSheet\fR ( TQStyleSheet * styleSheet )" .br .ti -1c .BI "virtual void \fBscrollToAnchor\fR ( const TQString & name )" @@ -551,11 +551,11 @@ The text edit documentation uses the following concepts: .TP \fIcurrent paragraph\fR -- the paragraph which contains the cursor. .PP -TQTextEdit can display images (using QMimeSourceFactory), lists and tables. If the text is too large to view within the text edit's viewport, scrollbars will appear. The text edit can load both plain text and HTML files (a subset of HTML 3.2 and 4). The rendering style and the set of valid tags are defined by a styleSheet(). Custom tags can be created and placed in a custom style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details. The images identified by image tags are displayed if they can be interpreted using the text edit's QMimeSourceFactory; see setMimeSourceFactory(). +TQTextEdit can display images (using QMimeSourceFactory), lists and tables. If the text is too large to view within the text edit's viewport, scrollbars will appear. The text edit can load both plain text and HTML files (a subset of HTML 3.2 and 4). The rendering style and the set of valid tags are defined by a styleSheet(). Custom tags can be created and placed in a custom style sheet. Change the style sheet with setStyleSheet(); see TQStyleSheet for details. The images identified by image tags are displayed if they can be interpreted using the text edit's QMimeSourceFactory; see setMimeSourceFactory(). .PP If you want a text browser with more navigation use TQTextBrowser. If you just need to display a small piece of rich text use QLabel or QSimpleRichText. .PP -If you create a new TQTextEdit, and want to allow the user to edit rich text, call setTextFormat(TQt::RichText) to ensure that the text is treated as rich text. (Rich text uses HTML tags to set text formatting attributes. See QStyleSheet for information on the HTML tags that are supported.). If you don't call setTextFormat() explicitly the text edit will guess from the text itself whether it is rich text or plain text. This means that if the text looks like HTML or XML it will probably be interpreted as rich text, so you should call setTextFormat(TQt::PlainText) to preserve such text. +If you create a new TQTextEdit, and want to allow the user to edit rich text, call setTextFormat(TQt::RichText) to ensure that the text is treated as rich text. (Rich text uses HTML tags to set text formatting attributes. See TQStyleSheet for information on the HTML tags that are supported.). If you don't call setTextFormat() explicitly the text edit will guess from the text itself whether it is rich text or plain text. This means that if the text looks like HTML or XML it will probably be interpreted as rich text, so you should call setTextFormat(TQt::PlainText) to preserve such text. .PP Note that we do not intend to add a full-featured web browser widget to TQt (because that would easily double Qt's size and only a few applications would benefit from it). The rich text support in TQt is designed to provide a fast, portable and efficient way to add reasonable online help facilities to applications, and to provide a basis for rich text editors. .SH "Using TQTextEdit as a Display Widget" @@ -641,7 +641,7 @@ Stylesheets can also be used in LogText mode. To create and use a custom tag, yo .br log->setTextFormat( TQt::LogText ); .br - QStyleSheetItem * item = new QStyleSheetItem( log->styleSheet(), "mytag" ); + TQStyleSheetItem * item = new TQStyleSheetItem( log->styleSheet(), "mytag" ); .br item->setColor( "red" ); .br @@ -652,7 +652,7 @@ Stylesheets can also be used in LogText mode. To create and use a custom tag, yo log->append( "This is a <mytag>custom tag</mytag>!" ); .br .fi -Note that only the color, bold, underline and italic attributes of a QStyleSheetItem is used in LogText mode. +Note that only the color, bold, underline and italic attributes of a TQStyleSheetItem is used in LogText mode. .PP Note that you can use setMaxLogLines() to limit the number of lines the widget can hold in LogText mode. .PP @@ -1160,7 +1160,7 @@ See also getSelection() and selectedText. Sets the background color of selection number \fIselNum\fR to \fIback\fR and specifies whether the text of this selection should be inverted with \fIinvertText\fR. .PP This only works for \fIselNum\fR > 0. The default selection (\fIselNum\fR == 0) gets its attributes from the text edit's colorGroup(). -.SH "void TQTextEdit::setStyleSheet ( QStyleSheet * styleSheet )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setStyleSheet ( TQStyleSheet * styleSheet )\fC [virtual slot]\fR" Sets the stylesheet to use with this text edit to \fIstyleSheet\fR. Changes will only take effect for new text added with setText() or append(). .PP See also styleSheet(). @@ -1177,7 +1177,7 @@ Changes the text of the text edit to the string \fItext\fR and the context to \f .PP \fItext\fR may be interpreted either as plain text or as rich text, depending on the textFormat(). The default setting is AutoText, i.e. the text edit auto-detects the format from \fItext\fR. .PP -For rich text the rendering style and available tags are defined by a styleSheet(); see QStyleSheet for details. +For rich text the rendering style and available tags are defined by a styleSheet(); see TQStyleSheet for details. .PP The optional \fIcontext\fR is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. (See TQTextEdit::TQTextEdit().) It is passed to the text edit's QMimeSourceFactory when quering data. .PP @@ -1204,8 +1204,8 @@ Sets the word wrap mode to \fImode\fR. See the "wordWrap" property for details. Sets the position (in pixels or columns depending on the wrap mode) where text will be wrapped. See the "wrapColumnOrWidth" property for details. .SH "void TQTextEdit::setWrapPolicy ( WrapPolicy policy )\fC [virtual slot]\fR" Sets the word wrap policy, at whitespace or anywhere to \fIpolicy\fR. See the "wrapPolicy" property for details. -.SH "QStyleSheet * TQTextEdit::styleSheet () const" -Returns the QStyleSheet which is being used by this text edit. +.SH "TQStyleSheet * TQTextEdit::styleSheet () const" +Returns the TQStyleSheet which is being used by this text edit. .PP See also setStyleSheet(). .PP @@ -1378,11 +1378,11 @@ The text format is one of the following: .TP PlainText - all characters, except newlines, are displayed verbatim, including spaces. Whenever a newline appears in the text the text edit inserts a hard line break and begins a new paragraph. .TP -RichText - rich text rendering. The available styles are defined in the default stylesheet QStyleSheet::defaultSheet(). +RichText - rich text rendering. The available styles are defined in the default stylesheet TQStyleSheet::defaultSheet(). .TP LogText - optimized mode for very large texts. Supports a very limited set of formatting tags (color, bold, underline and italic settings). .TP -AutoText - this is the default. The text edit autodetects which rendering style is best, PlainText or RichText. This is done by using the QStyleSheet::mightBeRichText() function. +AutoText - this is the default. The text edit autodetects which rendering style is best, PlainText or RichText. This is done by using the TQStyleSheet::mightBeRichText() function. .PP Set this property's value with setTextFormat() and get this property's value with textFormat(). .SH "int undoDepth" |