From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/ntqsimplerichtext.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/ntqsimplerichtext.html') diff --git a/doc/html/ntqsimplerichtext.html b/doc/html/ntqsimplerichtext.html index 8715d3384..68b195162 100644 --- a/doc/html/ntqsimplerichtext.html +++ b/doc/html/ntqsimplerichtext.html @@ -67,7 +67,7 @@ text. TQt provides a default HTML-like style sheet, but you may define custom style sheets.

Once created, the rich text object can be queried for its width(), height(), and the actual width used (see widthUsed()). Most -importantly, it can be drawn on any given TQPainter with draw(). +importantly, it can be drawn on any given TQPainter with draw(). TQSimpleRichText can also be used to implement hypertext or active text facilities by using anchorAt(). A hit test through inText() makes it possible to use simple rich text for text objects in @@ -83,7 +83,7 @@ laid out properly on the page.

See also Text Related Classes.


Member Function Documentation

-

TQSimpleRichText::TQSimpleRichText ( const TQString & text, const TQFont & fnt, const TQString & context = TQString::null, const TQStyleSheet * sheet = 0 ) +

TQSimpleRichText::TQSimpleRichText ( const TQString & text, const TQFont & fnt, const TQString & context = TQString::null, const TQStyleSheet * sheet = 0 )

Constructs a TQSimpleRichText from the rich text string text and the font fnt. @@ -104,14 +104,14 @@ calculate the absolute path. See

The sheet is an optional style sheet. If it is 0, the default style sheet will be used (see TQStyleSheet::defaultSheet()). -

TQSimpleRichText::TQSimpleRichText ( const TQString & text, const TQFont & fnt, const TQString & context, const TQStyleSheet * sheet, const TQMimeSourceFactory * factory, int pageBreak = -1, const TQColor & linkColor = TQt::blue, bool linkUnderline = TRUE ) +

TQSimpleRichText::TQSimpleRichText ( const TQString & text, const TQFont & fnt, const TQString & context, const TQStyleSheet * sheet, const TQMimeSourceFactory * factory, int pageBreak = -1, const TQColor & linkColor = TQt::blue, bool linkUnderline = TRUE )

Constructs a TQSimpleRichText from the rich text string text and the font fnt.

This is a slightly more complex constructor for TQSimpleRichText that takes an additional mime source factory factory, a page break parameter pageBreak and a bool linkUnderline. linkColor is only provided for compatibility, but has no effect, -as TQColorGroup's TQColorGroup::link() color is used now. +as TQColorGroup's TQColorGroup::link() color is used now.

context is the optional context of the rich text object. This becomes important if text contains relative references, for example within image tags. TQSimpleRichText always uses the default @@ -146,7 +146,7 @@ been specified in the constructor, a null string is returned. The context is the path to use to look up relative links, such as image tags and anchor references. -

void TQSimpleRichText::draw ( TQPainter * p, int x, int y, const TQRect & clipRect, const TQColorGroup & cg, const TQBrush * paper = 0 ) const +

void TQSimpleRichText::draw ( TQPainter * p, int x, int y, const TQRect & clipRect, const TQColorGroup & cg, const TQBrush * paper = 0 ) const

Draws the formatted text with painter p, at position (x, y), clipped to clipRect. The clipping rectangle is given in the rich text object's coordinates translated by (x, y). Passing @@ -158,7 +158,7 @@ so passing a brush for paper is preferable to simply clearing the area to be painted and then calling this without a brush.

Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, and mdi/application.cpp. -

void TQSimpleRichText::draw ( TQPainter * p, int x, int y, const TQRegion & clipRegion, const TQColorGroup & cg, const TQBrush * paper = 0 ) const +

void TQSimpleRichText::draw ( TQPainter * p, int x, int y, const TQRegion & clipRegion, const TQColorGroup & cg, const TQBrush * paper = 0 ) const

This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

Use the version with clipRect instead. The region version has @@ -176,11 +176,11 @@ Returns the height of the rich text object in pixels. Returns TRUE if pos is within a text line of the rich text object; otherwise returns FALSE. -

void TQSimpleRichText::setDefaultFont ( const TQFont & f ) +

void TQSimpleRichText::setDefaultFont ( const TQFont & f )

Sets the default font for the rich text object to f -

void TQSimpleRichText::setWidth ( TQPainter * p, int w ) +

void TQSimpleRichText::setWidth ( TQPainter * p, int w )

Sets the width of the rich text object to w pixels, recalculating the layout as if it were to be drawn with painter p. -- cgit v1.2.1