style. <ahref="tqobject.html">TQObject</a> is the base class for all style classes in TQt, and a
style. <ahref="tqobject.html">TQObject</a> is the base class for all style classes in TQt, and a
TQObject inherently cannot be copied since there are some aspects of it
TQObject inherently cannot be copied since there are some aspects of it
that are not copyable.
that are not copyable.
<p> From the <ahref="ntqstyle.html">TQStyle</a> docs we see that <tt>PE_ArrowUp</tt>, <tt>PE_ArrowDown</tt>, <tt>PE_ArrowLeft</tt> and <tt>PE_ArrowRight</tt> are the primitives we need to do
<p> From the <ahref="tqstyle.html">TQStyle</a> docs we see that <tt>PE_ArrowUp</tt>, <tt>PE_ArrowDown</tt>, <tt>PE_ArrowLeft</tt> and <tt>PE_ArrowRight</tt> are the primitives we need to do
something with. We get the following in our drawPrimitive() function:
something with. We get the following in our drawPrimitive() function:
<p><li> It parses common command line arguments and sets its internal
<p><li> It parses common command line arguments and sets its internal
state accordingly. See the <ahref="#TQApplication">constructor documentation</a> below for more details about this.
state accordingly. See the <ahref="#TQApplication">constructor documentation</a> below for more details about this.
<p><li> It defines the application's look and feel, which is
<p><li> It defines the application's look and feel, which is
encapsulated in a <ahref="ntqstyle.html">TQStyle</a> object. This can be changed at runtime
encapsulated in a <ahref="tqstyle.html">TQStyle</a> object. This can be changed at runtime
with <ahref="#setStyle">setStyle</a>().
with <ahref="#setStyle">setStyle</a>().
<p><li> It specifies how the application is to allocate colors.
<p><li> It specifies how the application is to allocate colors.
See <ahref="#setColorSpec">setColorSpec</a>() for details.
See <ahref="#setColorSpec">setColorSpec</a>() for details.
@ -1075,7 +1075,7 @@ may be used to do some style-based central customization of widgets.
<p> Note that you are not limited to the public functions of <ahref="tqwidget.html">TQWidget</a>.
<p> Note that you are not limited to the public functions of <ahref="tqwidget.html">TQWidget</a>.
Instead, based on meta information like <ahref="tqobject.html#className">TQObject::className</a>() you are
Instead, based on meta information like <ahref="tqobject.html#className">TQObject::className</a>() you are
able to customize any kind of widget.
able to customize any kind of widget.
<p><p>See also <ahref="ntqstyle.html#polish">TQStyle::polish</a>(), <ahref="tqwidget.html#polish">TQWidget::polish</a>(), <ahref="#setPalette">setPalette</a>(), and <ahref="#setFont">setFont</a>().
<p><p>See also <ahref="tqstyle.html#polish">TQStyle::polish</a>(), <ahref="tqwidget.html#polish">TQWidget::polish</a>(), <ahref="#setPalette">setPalette</a>(), and <ahref="#setFont">setFont</a>().
<p><p>See also <ahref="tqwidget.html#palette-prop">TQWidget::palette</a>, <ahref="#palette">palette</a>(), and <ahref="ntqstyle.html#polish">TQStyle::polish</a>().
<p><p>See also <ahref="tqwidget.html#palette-prop">TQWidget::palette</a>, <ahref="#palette">palette</a>(), and <ahref="tqstyle.html#polish">TQStyle::polish</a>().
<p>Examples: <ahref="i18n-example.html#x1934">i18n/main.cpp</a>, <ahref="themes-example.html#x267">themes/metal.cpp</a>, <ahref="themes-example.html#x324">themes/themes.cpp</a>, and <ahref="themes-example.html#x187">themes/wood.cpp</a>.
<p>Examples: <ahref="i18n-example.html#x1934">i18n/main.cpp</a>, <ahref="themes-example.html#x267">themes/metal.cpp</a>, <ahref="themes-example.html#x324">themes/themes.cpp</a>, and <ahref="themes-example.html#x187">themes/wood.cpp</a>.
Sets the application's GUI style to <em>style</em>. Ownership of the style
Sets the application's GUI style to <em>style</em>. Ownership of the style
object is transferred to TQApplication, so TQApplication will delete
object is transferred to TQApplication, so TQApplication will delete
@ -1553,14 +1553,14 @@ the style object on application exit or when a new style is set.
the initial colors or the system defaults. This is necessary since
the initial colors or the system defaults. This is necessary since
certain styles have to adapt the color palette to be fully
certain styles have to adapt the color palette to be fully
style-guide compliant.
style-guide compliant.
<p><p>See also <ahref="#style">style</a>(), <ahref="ntqstyle.html">TQStyle</a>, <ahref="#setPalette">setPalette</a>(), and <ahref="#desktopSettingsAware">desktopSettingsAware</a>().
<p><p>See also <ahref="#style">style</a>(), <ahref="tqstyle.html">TQStyle</a>, <ahref="#setPalette">setPalette</a>(), and <ahref="#desktopSettingsAware">desktopSettingsAware</a>().
@ -167,11 +167,11 @@ look depends upon the current GUI style.
<li><tt>TQFrame::TabWidgetPanel</tt> - is used to draw a frame suitable for tab widgets. The
<li><tt>TQFrame::TabWidgetPanel</tt> - is used to draw a frame suitable for tab widgets. The
look depends upon the current GUI style.
look depends upon the current GUI style.
<li><tt>TQFrame::MShape</tt> - internal mask
<li><tt>TQFrame::MShape</tt> - internal mask
</ul><p> When it does not call <ahref="ntqstyle.html">TQStyle</a>, Shape interacts with TQFrame::Shadow,
</ul><p> When it does not call <ahref="tqstyle.html">TQStyle</a>, Shape interacts with TQFrame::Shadow,
the <ahref="#lineWidth">lineWidth</a>() and the <ahref="#midLineWidth">midLineWidth</a>() to create the total result.
the <ahref="#lineWidth">lineWidth</a>() and the <ahref="#midLineWidth">midLineWidth</a>() to create the total result.
See the <ahref="#picture">picture of the frames</a> in the class
See the <ahref="#picture">picture of the frames</a> in the class
description.
description.
<p><p>See also <ahref="#Shadow-enum">TQFrame::Shadow</a>, <ahref="tqwidget.html#style">TQFrame::style</a>(), and <ahref="ntqstyle.html#drawPrimitive">TQStyle::drawPrimitive</a>().
<p><p>See also <ahref="#Shadow-enum">TQFrame::Shadow</a>, <ahref="tqwidget.html#style">TQFrame::style</a>(), and <ahref="tqstyle.html#drawPrimitive">TQStyle::drawPrimitive</a>().
@ -1541,9 +1541,9 @@ drawn in the <a href="qcolorgroup.html#mid">TQColorGroup::mid</a>() color.
<p> If you want to use a <ahref="ntqframe.html">TQFrame</a> widget instead, you can make it
<p> If you want to use a <ahref="ntqframe.html">TQFrame</a> widget instead, you can make it
display a shaded line, for example <tt>TQFrame::setFrameStyle( TQFrame::HLine | TQFrame::Sunken )</tt>.
display a shaded line, for example <tt>TQFrame::setFrameStyle( TQFrame::HLine | TQFrame::Sunken )</tt>.
<p><b>Warning:</b> This function does not look at <ahref="tqwidget.html#style">TQWidget::style</a>() or
<p><b>Warning:</b> This function does not look at <ahref="tqwidget.html#style">TQWidget::style</a>() or
<ahref="ntqapplication.html#style">TQApplication::style</a>(). Use the drawing functions in <ahref="ntqstyle.html">TQStyle</a> to make
<ahref="ntqapplication.html#style">TQApplication::style</a>(). Use the drawing functions in <ahref="tqstyle.html">TQStyle</a> to make
widgets that follow the current GUI style.
widgets that follow the current GUI style.
<p><p>See also <ahref="#qDrawShadeRect">qDrawShadeRect</a>(), <ahref="#qDrawShadePanel">qDrawShadePanel</a>(), and <ahref="ntqstyle.html#drawPrimitive">TQStyle::drawPrimitive</a>().
<p><p>See also <ahref="#qDrawShadeRect">qDrawShadeRect</a>(), <ahref="#qDrawShadePanel">qDrawShadePanel</a>(), and <ahref="tqstyle.html#drawPrimitive">TQStyle::drawPrimitive</a>().
<p> If you want to use a <ahref="ntqframe.html">TQFrame</a> widget instead, you can make it
<p> If you want to use a <ahref="ntqframe.html">TQFrame</a> widget instead, you can make it
display a shaded panel, for example <tt>TQFrame::setFrameStyle( TQFrame::Panel | TQFrame::Sunken )</tt>.
display a shaded panel, for example <tt>TQFrame::setFrameStyle( TQFrame::Panel | TQFrame::Sunken )</tt>.
<p><b>Warning:</b> This function does not look at <ahref="tqwidget.html#style">TQWidget::style</a>() or
<p><b>Warning:</b> This function does not look at <ahref="tqwidget.html#style">TQWidget::style</a>() or
<ahref="ntqapplication.html#style">TQApplication::style</a>(). Use the drawing functions in <ahref="ntqstyle.html">TQStyle</a> to make
<ahref="ntqapplication.html#style">TQApplication::style</a>(). Use the drawing functions in <ahref="tqstyle.html">TQStyle</a> to make
widgets that follow the current GUI style.
widgets that follow the current GUI style.
<p><p>See also <ahref="#qDrawWinPanel">qDrawWinPanel</a>(), <ahref="#qDrawShadeLine">qDrawShadeLine</a>(), <ahref="#qDrawShadeRect">qDrawShadeRect</a>(), and <ahref="ntqstyle.html#drawPrimitive">TQStyle::drawPrimitive</a>().
<p><p>See also <ahref="#qDrawWinPanel">qDrawWinPanel</a>(), <ahref="#qDrawShadeLine">qDrawShadeLine</a>(), <ahref="#qDrawShadeRect">qDrawShadeRect</a>(), and <ahref="tqstyle.html#drawPrimitive">TQStyle::drawPrimitive</a>().
@ -1579,9 +1579,9 @@ drawn in the <a href="qcolorgroup.html#mid">TQColorGroup::mid</a>() color.
<p> If you want to use a <ahref="ntqframe.html">TQFrame</a> widget instead, you can make it
<p> If you want to use a <ahref="ntqframe.html">TQFrame</a> widget instead, you can make it
display a shaded rectangle, for example <tt>TQFrame::setFrameStyle( TQFrame::Box | TQFrame::Raised )</tt>.
display a shaded rectangle, for example <tt>TQFrame::setFrameStyle( TQFrame::Box | TQFrame::Raised )</tt>.
<p><b>Warning:</b> This function does not look at <ahref="tqwidget.html#style">TQWidget::style</a>() or
<p><b>Warning:</b> This function does not look at <ahref="tqwidget.html#style">TQWidget::style</a>() or
<ahref="ntqapplication.html#style">TQApplication::style</a>(). Use the drawing functions in <ahref="ntqstyle.html">TQStyle</a> to make
<ahref="ntqapplication.html#style">TQApplication::style</a>(). Use the drawing functions in <ahref="tqstyle.html">TQStyle</a> to make
widgets that follow the current GUI style.
widgets that follow the current GUI style.
<p><p>See also <ahref="#qDrawShadeLine">qDrawShadeLine</a>(), <ahref="#qDrawShadePanel">qDrawShadePanel</a>(), <ahref="#qDrawPlainRect">qDrawPlainRect</a>(), <ahref="ntqstyle.html#drawItem">TQStyle::drawItem</a>(), <ahref="ntqstyle.html#drawControl">TQStyle::drawControl</a>(), and <ahref="ntqstyle.html#drawComplexControl">TQStyle::drawComplexControl</a>().
<p><p>See also <ahref="#qDrawShadeLine">qDrawShadeLine</a>(), <ahref="#qDrawShadePanel">qDrawShadePanel</a>(), <ahref="#qDrawPlainRect">qDrawPlainRect</a>(), <ahref="tqstyle.html#drawItem">TQStyle::drawItem</a>(), <ahref="tqstyle.html#drawControl">TQStyle::drawControl</a>(), and <ahref="tqstyle.html#drawComplexControl">TQStyle::drawComplexControl</a>().
@ -1609,9 +1609,9 @@ widgets that follow the current GUI style.
<p> If you want to use a <ahref="ntqframe.html">TQFrame</a> widget instead, you can make it
<p> If you want to use a <ahref="ntqframe.html">TQFrame</a> widget instead, you can make it
display a shaded panel, for example <tt>TQFrame::setFrameStyle( TQFrame::WinPanel | TQFrame::Raised )</tt>.
display a shaded panel, for example <tt>TQFrame::setFrameStyle( TQFrame::WinPanel | TQFrame::Raised )</tt>.
<p><b>Warning:</b> This function does not look at <ahref="tqwidget.html#style">TQWidget::style</a>() or
<p><b>Warning:</b> This function does not look at <ahref="tqwidget.html#style">TQWidget::style</a>() or
<ahref="ntqapplication.html#style">TQApplication::style</a>(). Use the drawing functions in <ahref="ntqstyle.html">TQStyle</a> to make
<ahref="ntqapplication.html#style">TQApplication::style</a>(). Use the drawing functions in <ahref="tqstyle.html">TQStyle</a> to make
widgets that follow the current GUI style.
widgets that follow the current GUI style.
<p><p>See also <ahref="#qDrawShadePanel">qDrawShadePanel</a>(), <ahref="#qDrawWinButton">qDrawWinButton</a>(), and <ahref="ntqstyle.html#drawPrimitive">TQStyle::drawPrimitive</a>().
<p><p>See also <ahref="#qDrawShadePanel">qDrawShadePanel</a>(), <ahref="#qDrawWinButton">qDrawWinButton</a>(), and <ahref="tqstyle.html#drawPrimitive">TQStyle::drawPrimitive</a>().
<li><ahref="ntqstyle.html#tabbarMetrics">TQStyle::tabbarMetrics</a>( const <ahref="tqwidget.html">TQWidget</a> *t, int & hf, int & vf, int & ov ) const
<li><ahref="tqstyle.html#tabbarMetrics">TQStyle::tabbarMetrics</a>( const <ahref="tqwidget.html">TQWidget</a> *t, int & hf, int & vf, int & ov ) const
<p>This property holds the action's "What's This?" help text.
<p>This property holds the action's "What's This?" help text.
<p>The whats this text is used to provide a brief description of the
<p>The whats this text is used to provide a brief description of the
action. The text may contain rich text (HTML-like tags -- see
action. The text may contain rich text (HTML-like tags -- see
<a href="ntqstylesheet.html">QStyleSheet</a> for the list of supported tags). There is no default
<a href="tqstylesheet.html">TQStyleSheet</a> for the list of supported tags). There is no default
"What's This" text.
"What's This" text.
<p> <p>See also <a href="ntqwhatsthis.html">QWhatsThis</a>.
<p> <p>See also <a href="ntqwhatsthis.html">QWhatsThis</a>.
@ -4032,13 +4032,13 @@ verbatim, including spaces. Whenever a newline appears in the text
the text edit inserts a hard line break and begins a new
the text edit inserts a hard line break and begins a new
paragraph.
paragraph.
<li> RichText - rich text rendering. The available styles are
<li> RichText - rich text rendering. The available styles are
defined in the default stylesheet <a href="ntqstylesheet.html#defaultSheet">QStyleSheet::defaultSheet</a>().
defined in the default stylesheet <a href="tqstylesheet.html#defaultSheet">TQStyleSheet::defaultSheet</a>().
<li> LogText - optimized mode for very large texts. Supports a very
<li> LogText - optimized mode for very large texts. Supports a very
limited set of formatting tags (color, bold, underline and italic
limited set of formatting tags (color, bold, underline and italic
settings).
settings).
<li> AutoText - this is the default. The text edit autodetects which
<li> AutoText - this is the default. The text edit autodetects which
rendering style is best, <a href="ntqt.html#TextFormat-enum">PlainText</a> or <a href="ntqt.html#TextFormat-enum">RichText</a>. This is done
rendering style is best, <a href="ntqt.html#TextFormat-enum">PlainText</a> or <a href="ntqt.html#TextFormat-enum">RichText</a>. This is done
by using the <a href="ntqstylesheet.html#mightBeRichText">QStyleSheet::mightBeRichText</a>() function.
by using the <a href="tqstylesheet.html#mightBeRichText">TQStyleSheet::mightBeRichText</a>() function.
</ul>
</ul>
<p>Set this property's value with <a href="tqtextedit.html#setTextFormat">setTextFormat</a>() and get this property's value with <a href="tqtextedit.html#textFormat">textFormat</a>().
<p>Set this property's value with <a href="tqtextedit.html#setTextFormat">setTextFormat</a>() and get this property's value with <a href="tqtextedit.html#textFormat">textFormat</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyleSheetItem</h1>
<p>This is the complete list of member functions for
<ahref="qstylesheetitem.html">TQStyleSheetItem</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyle</h1>
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyle</h1>
<p>This is the complete list of member functions for
<p>This is the complete list of member functions for
<ahref="ntqstyle.html">TQStyle</a>, including inherited members.
<ahref="tqstyle.html">TQStyle</a>, including inherited members.
<p> Returns the SubControl for <em>widget</em> at the point <em>pos</em>. The <em>widget</em> argument is a pointer to a <ahref="tqwidget.html">TQWidget</a> or one of its
<p> Returns the SubControl for <em>widget</em> at the point <em>pos</em>. The <em>widget</em> argument is a pointer to a <ahref="tqwidget.html">TQWidget</a> or one of its
@ -1054,7 +1054,7 @@ for an explanation of the <em>widget</em> and <em>opt</em> arguments.
coordinates.
coordinates.
<p><p>See also <ahref="#drawComplexControl">drawComplexControl</a>(), <ahref="#ComplexControl-enum">ComplexControl</a>, <ahref="#SubControl-enum">SubControl</a>, and <ahref="#querySubControlMetrics">querySubControlMetrics</a>().
<p><p>See also <ahref="#drawComplexControl">drawComplexControl</a>(), <ahref="#ComplexControl-enum">ComplexControl</a>, <ahref="#SubControl-enum">SubControl</a>, and <ahref="#querySubControlMetrics">querySubControlMetrics</a>().
<p> Returns the style hint <em>stylehint</em> for <em>widget</em>. Currently, <em>widget</em>, <em>opt</em>, and <em>returnData</em> are unused; they're included to
<p> Returns the style hint <em>stylehint</em> for <em>widget</em>. Currently, <em>widget</em>, <em>opt</em>, and <em>returnData</em> are unused; they're included to
allow for future enhancements.
allow for future enhancements.
<p> For an explanation of the return value see <ahref="#StyleHint-enum">StyleHint</a>.
<p> For an explanation of the return value see <ahref="#StyleHint-enum">StyleHint</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyleFactory</h1>
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyleFactory</h1>
<p>This is the complete list of member functions for
<p>This is the complete list of member functions for
<ahref="ntqstylefactory.html">TQStyleFactory</a>, including inherited members.
<ahref="tqstylefactory.html">TQStyleFactory</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyleOption</h1>
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyleOption</h1>
<p>This is the complete list of member functions for
<p>This is the complete list of member functions for
<ahref="qstyleoption.html">TQStyleOption</a>, including inherited members.
<ahref="tqstyleoption.html">TQStyleOption</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStylePlugin</h1>
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStylePlugin</h1>
<p>This is the complete list of member functions for
<p>This is the complete list of member functions for
<ahref="ntqstyleplugin.html">TQStylePlugin</a>, including inherited members.
<ahref="tqstyleplugin.html">TQStylePlugin</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyleSheet</h1>
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyleSheet</h1>
<p>This is the complete list of member functions for
<p>This is the complete list of member functions for
<ahref="ntqstylesheet.html">TQStyleSheet</a>, including inherited members.
<ahref="tqstylesheet.html">TQStyleSheet</a>, including inherited members.
</h3> Auxiliary function. Converts the plain text string <em>plain</em> to a
</h3> Auxiliary function. Converts the plain text string <em>plain</em> to a
rich text formatted paragraph while preserving most of its look.
rich text formatted paragraph while preserving most of its look.
<p><em>mode</em> defines the whitespace mode. Possible values are <ahref="qstylesheetitem.html#WhiteSpaceMode-enum">TQStyleSheetItem::WhiteSpacePre</a> (no wrapping, all whitespaces
<p><em>mode</em> defines the whitespace mode. Possible values are <ahref="tqstylesheetitem.html#WhiteSpaceMode-enum">TQStyleSheetItem::WhiteSpacePre</a> (no wrapping, all whitespaces
preserved) and <ahref="qstylesheetitem.html#WhiteSpaceMode-enum">TQStyleSheetItem::WhiteSpaceNormal</a> (wrapping,
preserved) and <ahref="tqstylesheetitem.html#WhiteSpaceMode-enum">TQStyleSheetItem::WhiteSpaceNormal</a> (wrapping,
simplified whitespaces).
simplified whitespaces).
<p><p>See also <ahref="#escape">escape</a>().
<p><p>See also <ahref="#escape">escape</a>().
<p>Examples: <ahref="qaction-application-example.html#x1163">action/application.cpp</a>, <ahref="simple-application-example.html#x1581">application/application.cpp</a>, and <ahref="mdi-example.html#x2067">mdi/application.cpp</a>.
<p>Examples: <ahref="qaction-application-example.html#x1163">action/application.cpp</a>, <ahref="simple-application-example.html#x1581">application/application.cpp</a>, and <ahref="mdi-example.html#x2067">mdi/application.cpp</a>.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Returns the style called <em>name</em> or 0 if there is no such style
<p> Returns the style called <em>name</em> or 0 if there is no such style
@ -345,9 +345,9 @@ corresponding to the logical font size <em>logicalSize</em>.
<p> When calling this function, <em>font</em> has a point size corresponding
<p> When calling this function, <em>font</em> has a point size corresponding
to the logical font size 3.
to the logical font size 3.
<p> Logical font sizes range from 1 to 7, with 1 being the smallest.
<p> Logical font sizes range from 1 to 7, with 1 being the smallest.
<p><p>See also <ahref="qstylesheetitem.html#logicalFontSize">TQStyleSheetItem::logicalFontSize</a>(), <ahref="qstylesheetitem.html#logicalFontSizeStep">TQStyleSheetItem::logicalFontSizeStep</a>(), and <ahref="ntqfont.html#setPointSize">TQFont::setPointSize</a>().
<p><p>See also <ahref="tqstylesheetitem.html#logicalFontSize">TQStyleSheetItem::logicalFontSize</a>(), <ahref="tqstylesheetitem.html#logicalFontSizeStep">TQStyleSheetItem::logicalFontSizeStep</a>(), and <ahref="ntqfont.html#setPointSize">TQFont::setPointSize</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStyleSheetItem</h1>
<p>This is the complete list of member functions for
<ahref="tqstylesheetitem.html">TQStyleSheetItem</a>, including inherited members.
The TQStyleSheetItem class provides an encapsulation of a set of text styles.
The TQStyleSheetItem class provides an encapsulation of a set of text styles.
<p>
<p>
<p> A style sheet item consists of a name and a set of attributes that
<p> A style sheet item consists of a name and a set of attributes that
specifiy its font, color, etc. When used in a <ahref="ntqstylesheet.html">style sheet</a> (see <ahref="#styleSheet">styleSheet</a>()), items define the <ahref="#name">name</a>() of
specifiy its font, color, etc. When used in a <ahref="tqstylesheet.html">style sheet</a> (see <ahref="#styleSheet">styleSheet</a>()), items define the <ahref="#name">name</a>() of
a rich text tag and the display property changes associated with
a rich text tag and the display property changes associated with
it.
it.
<p> The <ahref="#DisplayMode-enum">display mode</a>
<p> The <ahref="#DisplayMode-enum">display mode</a>
Returns the alignment of this style. Possible values are <ahref="ntqt.html#AlignmentFlags-enum">AlignAuto</a>, <ahref="ntqt.html#AlignmentFlags-enum">AlignLeft</a>, <ahref="ntqt.html#AlignmentFlags-enum">AlignRight</a>, <ahref="ntqt.html#AlignmentFlags-enum">AlignCenter</a> or <ahref="ntqt.html#AlignmentFlags-enum">AlignJustify</a>.
Returns the alignment of this style. Possible values are <ahref="ntqt.html#AlignmentFlags-enum">AlignAuto</a>, <ahref="ntqt.html#AlignmentFlags-enum">AlignLeft</a>, <ahref="ntqt.html#AlignmentFlags-enum">AlignRight</a>, <ahref="ntqt.html#AlignmentFlags-enum">AlignCenter</a> or <ahref="ntqt.html#AlignmentFlags-enum">AlignJustify</a>.
<p><p>See also <ahref="#setAlignment">setAlignment</a>() and <ahref="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>.
<p><p>See also <ahref="#setAlignment">setAlignment</a>() and <ahref="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>.
<p> The margin, <em>m</em>, can be <ahref="#Margin-enum">MarginLeft</a>, <ahref="#Margin-enum">MarginRight</a>, <ahref="#Margin-enum">MarginTop</a>, <ahref="#Margin-enum">MarginBottom</a>, or <ahref="#Margin-enum">MarginFirstLine</a>.
<p> The margin, <em>m</em>, can be <ahref="#Margin-enum">MarginLeft</a>, <ahref="#Margin-enum">MarginRight</a>, <ahref="#Margin-enum">MarginTop</a>, <ahref="#Margin-enum">MarginBottom</a>, or <ahref="#Margin-enum">MarginFirstLine</a>.
@ -328,7 +328,7 @@ Returns the name of the style item.
<p><p>See also <ahref="#setNumberOfColumns">setNumberOfColumns</a>(), <ahref="#displayMode">displayMode</a>(), and <ahref="#setDisplayMode">setDisplayMode</a>().
<p><p>See also <ahref="#setNumberOfColumns">setNumberOfColumns</a>(), <ahref="#displayMode">displayMode</a>(), and <ahref="#setDisplayMode">setDisplayMode</a>().
Sets the width of margin <em>m</em> to <em>v</em> pixels.
Sets the width of margin <em>m</em> to <em>v</em> pixels.
<p> The margin, <em>m</em>, can be <ahref="#Margin-enum">MarginLeft</a>, <ahref="#Margin-enum">MarginRight</a>, <ahref="#Margin-enum">MarginTop</a>, <ahref="#Margin-enum">MarginBottom</a>, <ahref="#Margin-enum">MarginFirstLine</a>, <ahref="#Margin-enum">MarginAll</a>,
<p> The margin, <em>m</em>, can be <ahref="#Margin-enum">MarginLeft</a>, <ahref="#Margin-enum">MarginRight</a>, <ahref="#Margin-enum">MarginTop</a>, <ahref="#Margin-enum">MarginBottom</a>, <ahref="#Margin-enum">MarginFirstLine</a>, <ahref="#Margin-enum">MarginAll</a>,
@ -446,34 +446,34 @@ items <tt><li></tt> are not self-nesting. This means that starting a
new paragraph or list item automatically closes the previous one.
new paragraph or list item automatically closes the previous one.
<p><p>See also <ahref="#selfNesting">selfNesting</a>().
<p><p>See also <ahref="#selfNesting">selfNesting</a>().
Sets the vertical alignment to <em>valign</em>. Possible values are
Sets the vertical alignment to <em>valign</em>. Possible values are
<ahref="#VerticalAlignment-enum">VAlignBaseline</a>, <ahref="#VerticalAlignment-enum">VAlignSub</a> or <ahref="#VerticalAlignment-enum">VAlignSuper</a>.
<ahref="#VerticalAlignment-enum">VAlignBaseline</a>, <ahref="#VerticalAlignment-enum">VAlignSub</a> or <ahref="#VerticalAlignment-enum">VAlignSuper</a>.
<p> The vertical alignment property is not inherited.
<p> The vertical alignment property is not inherited.
<p><p>See also <ahref="#verticalAlignment">verticalAlignment</a>().
<p><p>See also <ahref="#verticalAlignment">verticalAlignment</a>().
Returns the vertical alignment of the style. Possible values are
Returns the vertical alignment of the style. Possible values are
<ahref="#VerticalAlignment-enum">VAlignBaseline</a>, <ahref="#VerticalAlignment-enum">VAlignSub</a> or <ahref="#VerticalAlignment-enum">VAlignSuper</a>.
<ahref="#VerticalAlignment-enum">VAlignBaseline</a>, <ahref="#VerticalAlignment-enum">VAlignSub</a> or <ahref="#VerticalAlignment-enum">VAlignSuper</a>.
<p><p>See also <ahref="#setVerticalAlignment">setVerticalAlignment</a>().
<p><p>See also <ahref="#setVerticalAlignment">setVerticalAlignment</a>().
Returns the <ahref="ntqstylesheet.html">TQStyleSheet</a> which is being used by this text edit.
Returns the <ahref="tqstylesheet.html">TQStyleSheet</a> which is being used by this text edit.
<p><p>See also <ahref="#setStyleSheet">setStyleSheet</a>().
<p><p>See also <ahref="#setStyleSheet">setStyleSheet</a>().
<p>Examples: <ahref="qaction-application-example.html#x1169">action/application.cpp</a>, <ahref="simple-application-example.html#x1587">application/application.cpp</a>, <ahref="helpviewer-example.html#x1031">helpviewer/helpwindow.cpp</a>, and <ahref="mdi-example.html#x2072">mdi/application.cpp</a>.
<p>Examples: <ahref="qaction-application-example.html#x1169">action/application.cpp</a>, <ahref="simple-application-example.html#x1587">application/application.cpp</a>, <ahref="helpviewer-example.html#x1031">helpviewer/helpwindow.cpp</a>, and <ahref="mdi-example.html#x2072">mdi/application.cpp</a>.
@ -1563,13 +1563,13 @@ verbatim, including spaces. Whenever a newline appears in the text
the text edit inserts a hard line break and begins a new
the text edit inserts a hard line break and begins a new
paragraph.
paragraph.
<li> RichText - rich text rendering. The available styles are
<li> RichText - rich text rendering. The available styles are
defined in the default stylesheet <ahref="ntqstylesheet.html#defaultSheet">TQStyleSheet::defaultSheet</a>().
defined in the default stylesheet <ahref="tqstylesheet.html#defaultSheet">TQStyleSheet::defaultSheet</a>().
<li> LogText - optimized mode for very large texts. Supports a very
<li> LogText - optimized mode for very large texts. Supports a very
limited set of formatting tags (color, bold, underline and italic
limited set of formatting tags (color, bold, underline and italic
settings).
settings).
<li> AutoText - this is the default. The text edit autodetects which
<li> AutoText - this is the default. The text edit autodetects which
rendering style is best, <ahref="ntqt.html#TextFormat-enum">PlainText</a> or <ahref="ntqt.html#TextFormat-enum">RichText</a>. This is done
rendering style is best, <ahref="ntqt.html#TextFormat-enum">PlainText</a> or <ahref="ntqt.html#TextFormat-enum">RichText</a>. This is done
by using the <ahref="ntqstylesheet.html#mightBeRichText">TQStyleSheet::mightBeRichText</a>() function.
by using the <ahref="tqstylesheet.html#mightBeRichText">TQStyleSheet::mightBeRichText</a>() function.
</ul>
</ul>
<p>Set this property's value with <ahref="#setTextFormat">setTextFormat</a>() and get this property's value with <ahref="#textFormat">textFormat</a>().
<p>Set this property's value with <ahref="#setTextFormat">setTextFormat</a>() and get this property's value with <ahref="#textFormat">textFormat</a>().
Sets the widget's GUI style to <em>style</em>. Ownership of the style
Sets the widget's GUI style to <em>style</em>. Ownership of the style
object is not transferred.
object is not transferred.
@ -2193,13 +2193,13 @@ widgets.
purposes, where you want to show TQt's styling capabilities. Real
purposes, where you want to show TQt's styling capabilities. Real
applications should avoid it and use one consistent GUI style
applications should avoid it and use one consistent GUI style
instead.
instead.
<p><p>See also <ahref="#style">style</a>(), <ahref="ntqstyle.html">TQStyle</a>, <ahref="ntqapplication.html#style">TQApplication::style</a>(), and <ahref="ntqapplication.html#setStyle">TQApplication::setStyle</a>().
<p><p>See also <ahref="#style">style</a>(), <ahref="tqstyle.html">TQStyle</a>, <ahref="ntqapplication.html#style">TQApplication::style</a>(), and <ahref="ntqapplication.html#setStyle">TQApplication::setStyle</a>().
<p>Examples: <ahref="grapher-nsplugin-example.html#x2778">grapher/grapher.cpp</a> and <ahref="progressbar-example.html#x975">progressbar/progressbar.cpp</a>.
<p>Examples: <ahref="grapher-nsplugin-example.html#x2778">grapher/grapher.cpp</a> and <ahref="progressbar-example.html#x975">progressbar/progressbar.cpp</a>.
<p><p>See also <ahref="#setStyle">TQWidget::setStyle</a>(), <ahref="ntqapplication.html#setStyle">TQApplication::setStyle</a>(), and <ahref="ntqapplication.html#style">TQApplication::style</a>().
<p><p>See also <ahref="#setStyle">TQWidget::setStyle</a>(), <ahref="ntqapplication.html#setStyle">TQApplication::setStyle</a>(), and <ahref="ntqapplication.html#style">TQApplication::style</a>().
@ -504,7 +504,7 @@ Set this property's value with setVisible() and get this property's value with i
.SH "TQString whatsThis"
.SH "TQString whatsThis"
This property holds the action's "What's This?" help text.
This property holds the action's "What's This?" help text.
.PP
.PP
The whats this text is used to provide a brief description of the action. The text may contain rich text (HTML-like tags -- see QStyleSheet for the list of supported tags). There is no default" What's This" text.
The whats this text is used to provide a brief description of the action. The text may contain rich text (HTML-like tags -- see TQStyleSheet for the list of supported tags). There is no default" What's This" text.
@ -434,7 +434,7 @@ It performs event handling, meaning that it receives events from the underlying
It parses common command line arguments and sets its internal state accordingly. See the constructor documentation below for more details about this.
It parses common command line arguments and sets its internal state accordingly. See the constructor documentation below for more details about this.
.IP
.IP
.TP
.TP
It defines the application's look and feel, which is encapsulated in a QStyle object. This can be changed at runtime with setStyle().
It defines the application's look and feel, which is encapsulated in a TQStyle object. This can be changed at runtime with setStyle().
.IP
.IP
.TP
.TP
It specifies how the application is to allocate colors. See setColorSpec() for details.
It specifies how the application is to allocate colors. See setColorSpec() for details.
@ -1084,7 +1084,7 @@ Usually widgets call this automatically when they are polished. It may be used t
.PP
.PP
Note that you are not limited to the public functions of TQWidget. Instead, based on meta information like TQObject::className() you are able to customize any kind of widget.
Note that you are not limited to the public functions of TQWidget. Instead, based on meta information like TQObject::className() you are able to customize any kind of widget.
.PP
.PP
See also QStyle::polish(), TQWidget::polish(), setPalette(), and setFont().
See also TQStyle::polish(), TQWidget::polish(), setPalette(), and setFont().
\fBNote:\fR This function is thread-safe when TQt is built withthread support.</p> Adds the event \fIevent\fR with the object \fIreceiver\fR as the receiver of the event, to an event queue and returns immediately.
\fBNote:\fR This function is thread-safe when TQt is built withthread support.</p> Adds the event \fIevent\fR with the object \fIreceiver\fR as the receiver of the event, to an event queue and returns immediately.
.PP
.PP
@ -1444,9 +1444,9 @@ Changes the default application palette to \fIpalette\fR. If \fIinformWidgets\fR
.PP
.PP
If \fIclassName\fR is passed, the change applies only to widgets that inherit \fIclassName\fR (as reported by TQObject::inherits()). If \fIclassName\fR is left 0, the change affects all widgets, thus overriding any previously set class specific palettes.
If \fIclassName\fR is passed, the change applies only to widgets that inherit \fIclassName\fR (as reported by TQObject::inherits()). If \fIclassName\fR is left 0, the change affects all widgets, thus overriding any previously set class specific palettes.
.PP
.PP
The palette may be changed according to the current GUI style in QStyle::polish().
The palette may be changed according to the current GUI style in TQStyle::polish().
.PP
.PP
See also TQWidget::palette, palette(), and QStyle::polish().
See also TQWidget::palette, palette(), and TQStyle::polish().
.PP
.PP
Examples:
Examples:
.)l i18n/main.cpp, themes/metal.cpp, themes/themes.cpp, and themes/wood.cpp.
.)l i18n/main.cpp, themes/metal.cpp, themes/themes.cpp, and themes/wood.cpp.
@ -1464,7 +1464,7 @@ See also startDragDistance().
Sets the time after which a drag should start to \fIms\fR ms.
Sets the time after which a drag should start to \fIms\fR ms.
Sets the application's GUI style to \fIstyle\fR. Ownership of the style object is transferred to QApplication, so QApplication will delete the style object on application exit or when a new style is set.
Sets the application's GUI style to \fIstyle\fR. Ownership of the style object is transferred to QApplication, so QApplication will delete the style object on application exit or when a new style is set.
.PP
.PP
Example usage:
Example usage:
@ -1477,19 +1477,19 @@ Example usage:
.PP
.PP
When switching application styles, the color palette is set back to the initial colors or the system defaults. This is necessary since certain styles have to adapt the color palette to be fully style-guide compliant.
When switching application styles, the color palette is set back to the initial colors or the system defaults. This is necessary since certain styles have to adapt the color palette to be fully style-guide compliant.
.PP
.PP
See also style(), QStyle, setPalette(), and desktopSettingsAware().
See also style(), TQStyle, setPalette(), and desktopSettingsAware().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
.PP
Requests a QStyle object for \fIstyle\fR from the QStyleFactory.
Requests a TQStyle object for \fIstyle\fR from the TQStyleFactory.
.PP
.PP
The string must be one of the QStyleFactory::keys(), typically one of "windows", "motif", "cde", "motifplus", "platinum", "sgi" and" compact". Depending on the platform, "windowsxp", "aqua" or" macintosh" may be available.
The string must be one of the TQStyleFactory::keys(), typically one of "windows", "motif", "cde", "motifplus", "platinum", "sgi" and" compact". Depending on the platform, "windowsxp", "aqua" or" macintosh" may be available.
.PP
.PP
A later call to the QApplication constructor will override the requested style when a "-style" option is passed in as a commandline parameter.
A later call to the QApplication constructor will override the requested style when a "-style" option is passed in as a commandline parameter.
.PP
.PP
Returns 0 if an unknown \fIstyle\fR is passed, otherwise the QStyle object returned is set as the application's GUI style.
Returns 0 if an unknown \fIstyle\fR is passed, otherwise the TQStyle object returned is set as the application's GUI style.
.SH "void QApplication::setWheelScrollLines ( int n )\fC [static]\fR"
.SH "void QApplication::setWheelScrollLines ( int n )\fC [static]\fR"
Sets the number of lines to scroll when the mouse wheel is rotated to \fIn\fR.
Sets the number of lines to scroll when the mouse wheel is rotated to \fIn\fR.
.PP
.PP
@ -1536,10 +1536,10 @@ See also setStartDragTime() and startDragDistance().
Returns TRUE if an application object has not been created yet; otherwise returns FALSE.
Returns TRUE if an application object has not been created yet; otherwise returns FALSE.
@ -27,7 +27,7 @@ The QCDEStyle class provides a CDE look and feel.
.PP
.PP
This style provides a slightly improved Motif look similar to some versions of the Common Desktop Environment (CDE). The main differences are thinner frames and more modern radio buttons and checkboxes. Together with a dark background and a bright text/foreground color, the style looks quite attractive (at least for Motif fans).
This style provides a slightly improved Motif look similar to some versions of the Common Desktop Environment (CDE). The main differences are thinner frames and more modern radio buttons and checkboxes. Together with a dark background and a bright text/foreground color, the style looks quite attractive (at least for Motif fans).
.PP
.PP
Note that the functions provided by QCDEStyle are reimplementations of QStyle functions; see QStyle for their documentation.
Note that the functions provided by QCDEStyle are reimplementations of TQStyle functions; see TQStyle for their documentation.
In the example we are using the dictionary to provide fast random access to the keys, and we don't care what the values are. The example is used to generate a menu of QStyles, each with a unique accelerator key (or no accelerator if there are no unused letters left).
In the example we are using the dictionary to provide fast random access to the keys, and we don't care what the values are. The example is used to generate a menu of TQStyles, each with a unique accelerator key (or no accelerator if there are no unused letters left).
.PP
.PP
We first obtain the list of available styles, then sort them so that the menu items will be ordered alphabetically. Next we create a dictionary of int pointers. The keys in the dictionary are each one character long, representing letters that have been used for accelerators. We iterate through our list of style names. If the first letter of the style name is in the dictionary, i.e. has been used, we iterate over all the characters in the style name to see if we can find a letter that hasn't been used. If we find an unused letter we put the accelerator ampersand (&) in front of it and add that letter to the dictionary. If we can't find an unused letter the style will simply have no accelerator. If the first letter of the style name is not in the dictionary we use it for the accelerator and add it to the dictionary. Finally we create a QAction for each style.
We first obtain the list of available styles, then sort them so that the menu items will be ordered alphabetically. Next we create a dictionary of int pointers. The keys in the dictionary are each one character long, representing letters that have been used for accelerators. We iterate through our list of style names. If the first letter of the style name is in the dictionary, i.e. has been used, we iterate over all the characters in the style name to see if we can find a letter that hasn't been used. If we find an unused letter we put the accelerator ampersand (&) in front of it and add that letter to the dictionary. If we can't find an unused letter the style will simply have no accelerator. If the first letter of the style name is not in the dictionary we use it for the accelerator and add it to the dictionary. Finally we create a QAction for each style.
@ -209,9 +209,9 @@ This enum type defines the shapes of a QFrame's frame.
.TP
.TP
\fCQFrame::MShape\fR - internal mask
\fCQFrame::MShape\fR - internal mask
.PP
.PP
When it does not call QStyle, Shape interacts with QFrame::Shadow, the lineWidth() and the midLineWidth() to create the total result. See the picture of the frames in the class description.
When it does not call TQStyle, Shape interacts with QFrame::Shadow, the lineWidth() and the midLineWidth() to create the total result. See the picture of the frames in the class description.
.PP
.PP
See also QFrame::Shadow, QFrame::style(), and QStyle::drawPrimitive().
See also QFrame::Shadow, QFrame::style(), and TQStyle::drawPrimitive().
.SH MEMBER FUNCTION DOCUMENTATION
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QFrame::QFrame ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
.SH "QFrame::QFrame ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
Constructs a frame widget with frame style NoFrame and a 1-pixel frame width.
Constructs a frame widget with frame style NoFrame and a 1-pixel frame width.
The QMacStyle class implements an Appearance Manager style.
The QMacStyle class implements an Appearance Manager style.
.PP
.PP
This class is implemented as a wrapper to the Apple Appearance Manager. This allows your application to be styled by whatever theme your Macintosh is using. This is done by having primitives in QStyle implemented in terms of what the Macintosh would normally theme (i.e. the Finder).
This class is implemented as a wrapper to the Apple Appearance Manager. This allows your application to be styled by whatever theme your Macintosh is using. This is done by having primitives in TQStyle implemented in terms of what the Macintosh would normally theme (i.e. the Finder).
.PP
.PP
There are additional issues that should be taken into consideration to make an application compatible with the Aqua Style Guidelines. Some of these issues are outlined below.
There are additional issues that should be taken into consideration to make an application compatible with the Aqua Style Guidelines. Some of these issues are outlined below.
.IP
.IP
.TP
.TP
Layout - The restrictions on window layout are such that some aspects of layout that are style-dependent cannot be achieved using QLayout. Changes are being considered (and feedback would be appreciated) to make layouts QStyle-able. Some of the restrictions involve horizontal and vertical widget alignment and widget size (covered below).
Layout - The restrictions on window layout are such that some aspects of layout that are style-dependent cannot be achieved using QLayout. Changes are being considered (and feedback would be appreciated) to make layouts TQStyle-able. Some of the restrictions involve horizontal and vertical widget alignment and widget size (covered below).
.IP
.IP
.TP
.TP
Widget size - Aqua allows widgets to have specific fixed sizes. TQt does not fully implement this behaviour so as to maintain multiplatform compatibility. As a result some widgets sizes may be inappropriate (and subsequently not rendered correctly by the Appearance Manager).The TQWidget::sizeHint() will return the appropriate size for many managed widgets (widgets enumerated in QStyle::ContentsType).
Widget size - Aqua allows widgets to have specific fixed sizes. TQt does not fully implement this behaviour so as to maintain multiplatform compatibility. As a result some widgets sizes may be inappropriate (and subsequently not rendered correctly by the Appearance Manager).The TQWidget::sizeHint() will return the appropriate size for many managed widgets (widgets enumerated in TQStyle::ContentsType).
.IP
.IP
.TP
.TP
Effects - QMacStyle (in contrast to QAquaStyle) is not emulating (except where Appearance Manager does not provide certain capabilities), for example QPushButton pulsing effects. In this case a near matching emulation has been implemented, but naturally this will not be identical to the similar functionality built into the Appearance Manager. Please report any issues you see in effects or non-standard widgets.
Effects - QMacStyle (in contrast to QAquaStyle) is not emulating (except where Appearance Manager does not provide certain capabilities), for example QPushButton pulsing effects. In this case a near matching emulation has been implemented, but naturally this will not be identical to the similar functionality built into the Appearance Manager. Please report any issues you see in effects or non-standard widgets.
@ -62,7 +62,7 @@ Effects - QMacStyle (in contrast to QAquaStyle) is not emulating (except where A
.PP
.PP
There are other issues that need to be considered in the feel of your application (including the general color scheme to match the Aqua colors). The Guidelines mentioned above will remain current with new advances and design suggestions for Mac OS X.
There are other issues that need to be considered in the feel of your application (including the general color scheme to match the Aqua colors). The Guidelines mentioned above will remain current with new advances and design suggestions for Mac OS X.
.PP
.PP
Note that the functions provided by QMacStyle are reimplementations of QStyle functions; see QStyle for their documentation.
Note that the functions provided by QMacStyle are reimplementations of TQStyle functions; see TQStyle for their documentation.
@ -214,7 +214,7 @@ warning() can be used to tell the user about unusual errors, or errors which can
.br
.br
.fi
.fi
.PP
.PP
The text part of all message box messages can be either rich text or plain text. If you specify a rich text formatted string, it will be rendered using the default stylesheet. See QStyleSheet::defaultSheet() for details. With certain strings that contain XML meta characters, the auto-rich text detection may fail, interpreting plain text incorrectly as rich text. In these rare cases, use QStyleSheet::convertFromPlainText() to convert your plain text string to a visually equivalent rich text string or set the text format explicitly with setTextFormat().
The text part of all message box messages can be either rich text or plain text. If you specify a rich text formatted string, it will be rendered using the default stylesheet. See TQStyleSheet::defaultSheet() for details. With certain strings that contain XML meta characters, the auto-rich text detection may fail, interpreting plain text incorrectly as rich text. In these rare cases, use TQStyleSheet::convertFromPlainText() to convert your plain text string to a visually equivalent rich text string or set the text format explicitly with setTextFormat().
.PP
.PP
Note that the Microsoft Windows User Interface Guidelines recommend using the application name as the window's caption.
Note that the Microsoft Windows User Interface Guidelines recommend using the application name as the window's caption.
@ -43,7 +43,7 @@ If \fIarg\fR is FALSE, the style will polish the application's color palette to
.PP
.PP
The effect will show up the next time an application palette is set via QApplication::setPalette(). The current color palette of the application remains unchanged.
The effect will show up the next time an application palette is set via QApplication::setPalette(). The current color palette of the application remains unchanged.
@ -1587,9 +1587,9 @@ The rectangle's interior is filled with the \fIfill\fR brush unless \fIfill\fR i
.PP
.PP
If you want to use a QFrame widget instead, you can make it display a plain rectangle, for example \fCQFrame::setFrameStyle( QFrame::Box | QFrame::Plain )\fR.
If you want to use a QFrame widget instead, you can make it display a plain rectangle, for example \fCQFrame::setFrameStyle( QFrame::Box | QFrame::Plain )\fR.
.PP
.PP
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.
.PP
.PP
See also qDrawShadeRect() and QStyle::drawPrimitive().
See also qDrawShadeRect() and TQStyle::drawPrimitive().
.SH "void qDrawShadeLine ( QPainter * p, int x1, int y1, int x2, int y2, const QColorGroup & g, bool sunken, int lineWidth, int midLineWidth )"
.SH "void qDrawShadeLine ( QPainter * p, int x1, int y1, int x2, int y2, const QColorGroup & g, bool sunken, int lineWidth, int midLineWidth )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <ntqdrawutil.h>\fR
.PP
.PP
@ -1607,9 +1607,9 @@ The \fImidLineWidth\fR argument specifies the width of a middle line drawn in th
.PP
.PP
If you want to use a QFrame widget instead, you can make it display a shaded line, for example \fCQFrame::setFrameStyle( QFrame::HLine | QFrame::Sunken )\fR.
If you want to use a QFrame widget instead, you can make it display a shaded line, for example \fCQFrame::setFrameStyle( QFrame::HLine | QFrame::Sunken )\fR.
.PP
.PP
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.
.PP
.PP
See also qDrawShadeRect(), qDrawShadePanel(), and QStyle::drawPrimitive().
See also qDrawShadeRect(), qDrawShadePanel(), and TQStyle::drawPrimitive().
.SH "void qDrawShadePanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken, int lineWidth, const QBrush * fill )"
.SH "void qDrawShadePanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken, int lineWidth, const QBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <ntqdrawutil.h>\fR
.PP
.PP
@ -1625,9 +1625,9 @@ The panel's interior is filled with the \fIfill\fR brush unless \fIfill\fR is 0.
.PP
.PP
If you want to use a QFrame widget instead, you can make it display a shaded panel, for example \fCQFrame::setFrameStyle( QFrame::Panel | QFrame::Sunken )\fR.
If you want to use a QFrame widget instead, you can make it display a shaded panel, for example \fCQFrame::setFrameStyle( QFrame::Panel | QFrame::Sunken )\fR.
.PP
.PP
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.
.PP
.PP
See also qDrawWinPanel(), qDrawShadeLine(), qDrawShadeRect(), and QStyle::drawPrimitive().
See also qDrawWinPanel(), qDrawShadeLine(), qDrawShadeRect(), and TQStyle::drawPrimitive().
.SH "void qDrawShadeRect ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken, int lineWidth, int midLineWidth, const QBrush * fill )"
.SH "void qDrawShadeRect ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken, int lineWidth, int midLineWidth, const QBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <ntqdrawutil.h>\fR
.PP
.PP
@ -1645,9 +1645,9 @@ The rectangle's interior is filled with the \fIfill\fR brush unless \fIfill\fR i
.PP
.PP
If you want to use a QFrame widget instead, you can make it display a shaded rectangle, for example \fCQFrame::setFrameStyle( QFrame::Box | QFrame::Raised )\fR.
If you want to use a QFrame widget instead, you can make it display a shaded rectangle, for example \fCQFrame::setFrameStyle( QFrame::Box | QFrame::Raised )\fR.
.PP
.PP
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.
.PP
.PP
See also qDrawShadeLine(), qDrawShadePanel(), qDrawPlainRect(), QStyle::drawItem(), QStyle::drawControl(), and QStyle::drawComplexControl().
See also qDrawShadeLine(), qDrawShadePanel(), qDrawPlainRect(), TQStyle::drawItem(), TQStyle::drawControl(), and TQStyle::drawComplexControl().
.SH "void qDrawWinButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken, const QBrush * fill )"
.SH "void qDrawWinButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken, const QBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <ntqdrawutil.h>\fR
.PP
.PP
@ -1661,9 +1661,9 @@ The line width is 2 pixels.
.PP
.PP
The button's interior is filled with the \fI*fill\fR brush unless \fIfill\fR is 0.
The button's interior is filled with the \fI*fill\fR brush unless \fIfill\fR is 0.
.PP
.PP
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.
.PP
.PP
See also qDrawWinPanel() and QStyle::drawControl().
See also qDrawWinPanel() and TQStyle::drawControl().
.SH "void qDrawWinPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken, const QBrush * fill )"
.SH "void qDrawWinPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken, const QBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <ntqdrawutil.h>\fR
.PP
.PP
@ -1679,9 +1679,9 @@ The button's interior is filled with the \fIfill\fR brush unless \fIfill\fR is 0
.PP
.PP
If you want to use a QFrame widget instead, you can make it display a shaded panel, for example \fCQFrame::setFrameStyle( QFrame::WinPanel | QFrame::Raised )\fR.
If you want to use a QFrame widget instead, you can make it display a shaded panel, for example \fCQFrame::setFrameStyle( QFrame::WinPanel | QFrame::Raised )\fR.
.PP
.PP
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
\fBWarning:\fR This function does not look at TQWidget::style() or QApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.
.PP
.PP
See also qDrawShadePanel(), qDrawWinButton(), and QStyle::drawPrimitive().
See also qDrawShadePanel(), qDrawWinButton(), and TQStyle::drawPrimitive().
The QPlatinumStyle class provides Mac/Platinum look and feel.
The QPlatinumStyle class provides Mac/Platinum look and feel.
.PP
.PP
This class implements the Platinum look and feel. It's an experimental class that tries to resemble a Macinosh-like GUI style with the QStyle system. The emulation is currently far from perfect.
This class implements the Platinum look and feel. It's an experimental class that tries to resemble a Macinosh-like GUI style with the TQStyle system. The emulation is currently far from perfect.
.PP
.PP
See also QAquaStyle and Widget Appearance and Style.
See also QAquaStyle and Widget Appearance and Style.
.SH "void QPopupMenu::drawItem ( QPainter * p, int tab_, QMenuItem * mi, bool act, int x, int y, int w, int h )\fC [protected]\fR"
.SH "void QPopupMenu::drawItem ( QPainter * p, int tab_, QMenuItem * mi, bool act, int x, int y, int w, int h )\fC [protected]\fR"
Draws menu item \fImi\fR in the area \fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR, using painter \fIp\fR. The item is drawn active if \fIact\fR is TRUE or drawn inactive if \fIact\fR is FALSE. The rightmost \fItab_\fR pixels are used for accelerator text.
Draws menu item \fImi\fR in the area \fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR, using painter \fIp\fR. The item is drawn active if \fIact\fR is TRUE or drawn inactive if \fIact\fR is FALSE. The rightmost \fItab_\fR pixels are used for accelerator text.
@ -62,7 +62,7 @@ QSimpleRichText \- Small displayable piece of rich text
.SH DESCRIPTION
.SH DESCRIPTION
The QSimpleRichText class provides a small displayable piece of rich text.
The QSimpleRichText class provides a small displayable piece of rich text.
.PP
.PP
This class encapsulates simple rich text usage in which a string is interpreted as rich text and can be drawn. This is particularly useful if you want to display some rich text in a custom widget. A QStyleSheet is needed to interpret the tags and format the rich text. TQt provides a default HTML-like style sheet, but you may define custom style sheets.
This class encapsulates simple rich text usage in which a string is interpreted as rich text and can be drawn. This is particularly useful if you want to display some rich text in a custom widget. A TQStyleSheet is needed to interpret the tags and format the rich text. TQt provides a default HTML-like style sheet, but you may define custom style sheets.
.PP
.PP
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 QPainter with draw(). QSimpleRichText 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 editable drawing canvases.
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 QPainter with draw(). QSimpleRichText 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 editable drawing canvases.
.PP
.PP
@ -74,7 +74,7 @@ If you are using QSimpleRichText to print in high resolution you should call set
Constructs a QSimpleRichText from the rich text string \fItext\fR and the font \fIfnt\fR.
Constructs a QSimpleRichText from the rich text string \fItext\fR and the font \fIfnt\fR.
.PP
.PP
The font is used as a basis for the text rendering. When using rich text rendering on a widget \fIw\fR, you would normally specify the widget's font, for example:
The font is used as a basis for the text rendering. When using rich text rendering on a widget \fIw\fR, you would normally specify the widget's font, for example:
@ -87,15 +87,15 @@ The font is used as a basis for the text rendering. When using rich text renderi
.PP
.PP
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see QMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See QMimeSourceFactory::makeAbsolute() for details.
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see QMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See QMimeSourceFactory::makeAbsolute() for details.
.PP
.PP
The \fIsheet\fR is an optional style sheet. If it is 0, the default style sheet will be used (see QStyleSheet::defaultSheet()).
The \fIsheet\fR is an optional style sheet. If it is 0, the default style sheet will be used (see TQStyleSheet::defaultSheet()).
Constructs a QSimpleRichText from the rich text string \fItext\fR and the font \fIfnt\fR.
Constructs a QSimpleRichText from the rich text string \fItext\fR and the font \fIfnt\fR.
.PP
.PP
This is a slightly more complex constructor for QSimpleRichText that takes an additional mime source factory \fIfactory\fR, a page break parameter \fIpageBreak\fR and a bool \fIlinkUnderline\fR. \fIlinkColor\fR is only provided for compatibility, but has no effect, as QColorGroup's QColorGroup::link() color is used now.
This is a slightly more complex constructor for QSimpleRichText that takes an additional mime source factory \fIfactory\fR, a page break parameter \fIpageBreak\fR and a bool \fIlinkUnderline\fR. \fIlinkColor\fR is only provided for compatibility, but has no effect, as QColorGroup's QColorGroup::link() color is used now.
.PP
.PP
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see QMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See QMimeSourceFactory::makeAbsolute() for details.
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see QMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See QMimeSourceFactory::makeAbsolute() for details.
.PP
.PP
The \fIsheet\fR is an optional style sheet. If it is 0, the default style sheet will be used (see QStyleSheet::defaultSheet()).
The \fIsheet\fR is an optional style sheet. If it is 0, the default style sheet will be used (see TQStyleSheet::defaultSheet()).
.PP
.PP
This constructor is useful for creating a QSimpleRichText object suitable for printing. Set \fIpageBreak\fR to be the height of the contents area of the pages.
This constructor is useful for creating a QSimpleRichText object suitable for printing. Set \fIpageBreak\fR to be the height of the contents area of the pages.
The style factory creates a QStyle object for a given key with QStyleFactory::create(key).
The style factory creates a TQStyle object for a given key with TQStyleFactory::create(key).
.PP
.PP
The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).
The styles are either built-in or dynamically loaded from a style plugin (see TQStylePlugin).
.PP
.PP
QStyleFactory::keys() returns a list of valid keys, typically including "Windows", "Motif", "CDE", "MotifPlus", "Platinum"," SGI" and "Compact". Depending on the platform, "WindowsXP"," Aqua" or "Macintosh" may be available.
TQStyleFactory::keys() returns a list of valid keys, typically including "Windows", "Motif", "CDE", "MotifPlus", "Platinum"," SGI" and "Compact". Depending on the platform, "WindowsXP"," Aqua" or "Macintosh" may be available.
The QStyleOption class specifies optional parameters for QStyle functions.
The TQStyleOption class specifies optional parameters for TQStyle functions.
.PP
.PP
Some QStyle functions take an optional argument specifying extra information that is required for a paritical primitive or control. So that the QStyle class can be extended, QStyleOption is used to provide a variable-argument for these options.
Some TQStyle functions take an optional argument specifying extra information that is required for a paritical primitive or control. So that the TQStyle class can be extended, TQStyleOption is used to provide a variable-argument for these options.
.PP
.PP
The QStyleOption class has constructors for each type of optional argument, and this set of constructors may be extended in future TQt releases. There are also corresponding access functions that return the optional arguments: these too may be extended.
The TQStyleOption class has constructors for each type of optional argument, and this set of constructors may be extended in future TQt releases. There are also corresponding access functions that return the optional arguments: these too may be extended.
.PP
.PP
For each constructor, you should refer to the documentation of the QStyle functions to see the meaning of the arguments.
For each constructor, you should refer to the documentation of the TQStyle functions to see the meaning of the arguments.
.PP
.PP
When calling QStyle functions from your own widgets, you must only pass the default QStyleOption or the argument that QStyle is documented to accept. For example, if the function expects QStyleOption(QMenuItem *, int), passing QStyleOption(QMenuItem *) leaves the optional integer argument uninitialized.
When calling TQStyle functions from your own widgets, you must only pass the default TQStyleOption or the argument that TQStyle is documented to accept. For example, if the function expects TQStyleOption(QMenuItem *, int), passing TQStyleOption(QMenuItem *) leaves the optional integer argument uninitialized.
.PP
.PP
When subclassing QStyle, you must similarly only expect the default or documented arguments. The other arguments will have uninitialized values.
When subclassing TQStyle, you must similarly only expect the default or documented arguments. The other arguments will have uninitialized values.
.PP
.PP
If you make your own QStyle subclasses and your own widgets, you can make a subclass of QStyleOption to pass additional arguments to your QStyle subclass. You will need to cast the "const QStyleOption&" argument to your subclass, so be sure your style has been called from your widget.
If you make your own TQStyle subclasses and your own widgets, you can make a subclass of TQStyleOption to pass additional arguments to your TQStyle subclass. You will need to cast the "const TQStyleOption&" argument to your subclass, so be sure your style has been called from your widget.
.PP
.PP
See also Widget Appearance and Style.
See also Widget Appearance and Style.
.SS "Member Type Documentation"
.SS "Member Type Documentation"
.SH "QStyleOption::StyleOptionDefault"
.SH "TQStyleOption::StyleOptionDefault"
This enum value can be passed as the optional argument to any QStyle function.
This enum value can be passed as the optional argument to any TQStyle function.
The QStylePlugin class provides an abstract base for custom QStyle plugins.
The TQStylePlugin class provides an abstract base for custom TQStyle plugins.
.PP
.PP
The style plugin is a simple plugin interface that makes it easy to create custom styles that can be loaded dynamically into applications with a QStyleFactory.
The style plugin is a simple plugin interface that makes it easy to create custom styles that can be loaded dynamically into applications with a TQStyleFactory.
.PP
.PP
Writing a style plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys() and create(), and exporting the class with the \fCQ_EXPORT_PLUGIN\fR macro. See the plugins documentation for an example.
Writing a style plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys() and create(), and exporting the class with the \fCQ_EXPORT_PLUGIN\fR macro. See the plugins documentation for an example.
.PP
.PP
See also Plugins.
See also Plugins.
.SH MEMBER FUNCTION DOCUMENTATION
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QStylePlugin::QStylePlugin ()"
.SH "TQStylePlugin::TQStylePlugin ()"
Constructs a style plugin. This is invoked automatically by the \fCQ_EXPORT_PLUGIN\fR macro.
Constructs a style plugin. This is invoked automatically by the \fCQ_EXPORT_PLUGIN\fR macro.
.SH "QStylePlugin::~QStylePlugin ()"
.SH "TQStylePlugin::~TQStylePlugin ()"
Destroys the style plugin.
Destroys the style plugin.
.PP
.PP
You never have to call this explicitly. TQt destroys a plugin automatically when it is no longer used.
You never have to call this explicitly. TQt destroys a plugin automatically when it is no longer used.
.BI "bool \fBmightBeRichText\fR ( const TQString & text )"
.BI "bool \fBmightBeRichText\fR ( const TQString & text )"
.br
.br
.in -1c
.in -1c
.SH DESCRIPTION
.SH DESCRIPTION
The QStyleSheet class is a collection of styles for rich text rendering and a generator of tags.
The TQStyleSheet class is a collection of styles for rich text rendering and a generator of tags.
.PP
.PP
By creating QStyleSheetItem objects for a style sheet you build a definition of a set of tags. This definition will be used by the internal rich text rendering system to parse and display text documents to which the style sheet applies. Rich text is normally visualized in a TQTextEdit or a TQTextBrowser. However, QLabel, QWhatsThis and QMessageBox also support it, and other classes are likely to follow. With QSimpleRichText it is possible to use the rich text renderer for custom widgets as well.
By creating TQStyleSheetItem objects for a style sheet you build a definition of a set of tags. This definition will be used by the internal rich text rendering system to parse and display text documents to which the style sheet applies. Rich text is normally visualized in a TQTextEdit or a TQTextBrowser. However, QLabel, QWhatsThis and QMessageBox also support it, and other classes are likely to follow. With QSimpleRichText it is possible to use the rich text renderer for custom widgets as well.
.PP
.PP
The default QStyleSheet object has the following style bindings, sorted by structuring bindings, anchors, character style bindings (i.e. inline styles), special elements such as horizontal lines or images, and other tags. In addition, rich text supports simple HTML tables.
The default TQStyleSheet object has the following style bindings, sorted by structuring bindings, anchors, character style bindings (i.e. inline styles), special elements such as horizontal lines or images, and other tags. In addition, rich text supports simple HTML tables.
.PP
.PP
The structuring tags are <center>.nf
The structuring tags are <center>.nf
.TS
.TS
@ -136,58 +136,58 @@ A table row. This is only valid within a A table header cell. Similar to A table
.PP
.PP
See also Graphics Classes, Help System, and Text Related Classes.
See also Graphics Classes, Help System, and Text Related Classes.
Creates a style sheet called \fIname\fR, with parent \fIparent\fR. Like any TQObject it will be deleted when its parent is destroyed (if the child still exists).
Creates a style sheet called \fIname\fR, with parent \fIparent\fR. Like any TQObject it will be deleted when its parent is destroyed (if the child still exists).
.PP
.PP
By default the style sheet has the tag definitions defined above.
By default the style sheet has the tag definitions defined above.
Auxiliary function. Converts the plain text string \fIplain\fR to a rich text formatted paragraph while preserving most of its look.
Auxiliary function. Converts the plain text string \fIplain\fR to a rich text formatted paragraph while preserving most of its look.
.PP
.PP
\fImode\fR defines the whitespace mode. Possible values are QStyleSheetItem::WhiteSpacePre (no wrapping, all whitespaces preserved) and QStyleSheetItem::WhiteSpaceNormal (wrapping, simplified whitespaces).
\fImode\fR defines the whitespace mode. Possible values are TQStyleSheetItem::WhiteSpacePre (no wrapping, all whitespaces preserved) and TQStyleSheetItem::WhiteSpaceNormal (wrapping, simplified whitespaces).
.PP
.PP
See also escape().
See also escape().
.PP
.PP
Examples:
Examples:
.)l action/application.cpp, application/application.cpp, and mdi/application.cpp.
.)l action/application.cpp, application/application.cpp, and mdi/application.cpp.
Returns the application-wide default style sheet. This style sheet is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to define the rendering style and available tags within rich text documents. It also serves as the initial style sheet for the more complex render widgets, TQTextEdit and TQTextBrowser.
Returns the application-wide default style sheet. This style sheet is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to define the rendering style and available tags within rich text documents. It also serves as the initial style sheet for the more complex render widgets, TQTextEdit and TQTextBrowser.
This virtual function is called when an error occurs when processing rich text. Reimplement it if you need to catch error messages.
This virtual function is called when an error occurs when processing rich text. Reimplement it if you need to catch error messages.
.PP
.PP
Errors might occur if some rich text strings contain tags that are not understood by the stylesheet, if some tags are nested incorrectly, or if tags are not closed properly.
Errors might occur if some rich text strings contain tags that are not understood by the stylesheet, if some tags are nested incorrectly, or if tags are not closed properly.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
.PP
Returns the style called \fIname\fR or 0 if there is no such style (const version)
Returns the style called \fIname\fR or 0 if there is no such style (const version)
.SH "bool QStyleSheet::mightBeRichText ( const TQString & text )\fC [static]\fR"
.SH "bool TQStyleSheet::mightBeRichText ( const TQString & text )\fC [static]\fR"
Returns TRUE if the string \fItext\fR is likely to be rich text; otherwise returns FALSE.
Returns TRUE if the string \fItext\fR is likely to be rich text; otherwise returns FALSE.
.PP
.PP
This function uses a fast and therefore simple heuristic. It mainly checks whether there is something that looks like a tag before the first line break. Although the result may be correct for common cases, there is no guarantee.
This function uses a fast and therefore simple heuristic. It mainly checks whether there is something that looks like a tag before the first line break. Although the result may be correct for common cases, there is no guarantee.
\fBThis function is under development and is subject to change.\fR
\fBThis function is under development and is subject to change.\fR
.PP
.PP
Generates an internal object for the tag called \fIname\fR, given the attributes \fIattr\fR, and using additional information provided by the mime source factory \fIfactory\fR.
Generates an internal object for the tag called \fIname\fR, given the attributes \fIattr\fR, and using additional information provided by the mime source factory \fIfactory\fR.
@ -199,7 +199,7 @@ Generates an internal object for the tag called \fIname\fR, given the attributes
This function should not be used in application code.
This function should not be used in application code.
.SH "SEE ALSO"
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqstylesheet.html
.BR http://doc.trolltech.com/tqstylesheet.html
.BR http://www.trolltech.com/faq/tech.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
.BI "void \fBsetContexts\fR ( const TQString & c )"
.BI "void \fBsetContexts\fR ( const TQString & c )"
.br
.br
.ti -1c
.ti -1c
.BI "bool \fBallowedInContext\fR ( const QStyleSheetItem * s ) const"
.BI "bool \fBallowedInContext\fR ( const TQStyleSheetItem * s ) const"
.br
.br
.ti -1c
.ti -1c
.BI "bool \fBselfNesting\fR () const"
.BI "bool \fBselfNesting\fR () const"
@ -182,7 +182,7 @@ Inherits Qt.
.br
.br
.in -1c
.in -1c
.SH DESCRIPTION
.SH DESCRIPTION
The QStyleSheetItem class provides an encapsulation of a set of text styles.
The TQStyleSheetItem class provides an encapsulation of a set of text styles.
.PP
.PP
A style sheet item consists of a name and a set of attributes that specifiy its font, color, etc. When used in a style sheet (see styleSheet()), items define the name() of a rich text tag and the display property changes associated with it.
A style sheet item consists of a name and a set of attributes that specifiy its font, color, etc. When used in a style sheet (see styleSheet()), items define the name() of a rich text tag and the display property changes associated with it.
.PP
.PP
@ -190,276 +190,276 @@ The display mode attribute indicates whether the item is a block, an inline elem
.PP
.PP
See also Text Related Classes.
See also Text Related Classes.
.SS "Member Type Documentation"
.SS "Member Type Documentation"
.SH "QStyleSheetItem::DisplayMode"
.SH "TQStyleSheetItem::DisplayMode"
This enum type defines the way adjacent elements are displayed.
This enum type defines the way adjacent elements are displayed.
.TP
.TP
\fCQStyleSheetItem::DisplayBlock\fR - elements are displayed as a rectangular block (e.g. \fC<p>...</p>\fR).
\fCTQStyleSheetItem::DisplayBlock\fR - elements are displayed as a rectangular block (e.g. \fC<p>...</p>\fR).
.TP
.TP
\fCQStyleSheetItem::DisplayInline\fR - elements are displayed in a horizontally flowing sequence (e.g. \fC<em>...</em>\fR).
\fCTQStyleSheetItem::DisplayInline\fR - elements are displayed in a horizontally flowing sequence (e.g. \fC<em>...</em>\fR).
.TP
.TP
\fCQStyleSheetItem::DisplayListItem\fR - elements are displayed in a vertical sequence (e.g. \fC<li>...</li>\fR).
\fCTQStyleSheetItem::DisplayListItem\fR - elements are displayed in a vertical sequence (e.g. \fC<li>...</li>\fR).
.TP
.TP
\fCQStyleSheetItem::DisplayNone\fR - elements are not displayed at all.
\fCTQStyleSheetItem::DisplayNone\fR - elements are not displayed at all.
.SH "QStyleSheetItem::ListStyle"
.SH "TQStyleSheetItem::ListStyle"
This enum type defines how the items in a list are prefixed when displayed.
This enum type defines how the items in a list are prefixed when displayed.
.TP
.TP
\fCQStyleSheetItem::ListDisc\fR - a filled circle (i.e. a bullet)
\fCTQStyleSheetItem::ListDisc\fR - a filled circle (i.e. a bullet)
.TP
.TP
\fCQStyleSheetItem::ListCircle\fR - an unfilled circle
\fCTQStyleSheetItem::ListCircle\fR - an unfilled circle
.TP
.TP
\fCQStyleSheetItem::ListSquare\fR - a filled square
\fCTQStyleSheetItem::ListSquare\fR - a filled square
.TP
.TP
\fCQStyleSheetItem::ListDecimal\fR - an integer in base 10: \fI1\fR, \fI2\fR, \fI3\fR, ...
\fCTQStyleSheetItem::ListDecimal\fR - an integer in base 10: \fI1\fR, \fI2\fR, \fI3\fR, ...
.TP
.TP
\fCQStyleSheetItem::ListLowerAlpha\fR - a lowercase letter: \fIa\fR, \fIb\fR, \fIc\fR, ...
\fCTQStyleSheetItem::ListLowerAlpha\fR - a lowercase letter: \fIa\fR, \fIb\fR, \fIc\fR, ...
.TP
.TP
\fCQStyleSheetItem::ListUpperAlpha\fR - an uppercase letter: \fIA\fR, \fIB\fR, \fIC\fR, ...
\fCTQStyleSheetItem::ListUpperAlpha\fR - an uppercase letter: \fIA\fR, \fIB\fR, \fIC\fR, ...
.SH "QStyleSheetItem::Margin"
.SH "TQStyleSheetItem::Margin"
.TP
.TP
\fCQStyleSheetItem::MarginLeft\fR - left margin
\fCTQStyleSheetItem::MarginLeft\fR - left margin
.TP
.TP
\fCQStyleSheetItem::MarginRight\fR - right margin
\fCTQStyleSheetItem::MarginRight\fR - right margin
\fCQStyleSheetItem::MarginAll\fR - all margins (left, right, top and bottom)
\fCTQStyleSheetItem::MarginAll\fR - all margins (left, right, top and bottom)
.TP
.TP
\fCQStyleSheetItem::MarginVertical\fR - top and bottom margins
\fCTQStyleSheetItem::MarginVertical\fR - top and bottom margins
.TP
.TP
\fCQStyleSheetItem::MarginHorizontal\fR - left and right margins
\fCTQStyleSheetItem::MarginHorizontal\fR - left and right margins
.TP
.TP
\fCQStyleSheetItem::MarginFirstLine\fR - margin (indentation) of the first line of a paragarph (in addition to the MarginLeft of the paragraph)
\fCTQStyleSheetItem::MarginFirstLine\fR - margin (indentation) of the first line of a paragarph (in addition to the MarginLeft of the paragraph)
.SH "QStyleSheetItem::VerticalAlignment"
.SH "TQStyleSheetItem::VerticalAlignment"
This enum type defines the way elements are aligned vertically. This is only supported for text elements.
This enum type defines the way elements are aligned vertically. This is only supported for text elements.
.TP
.TP
\fCQStyleSheetItem::VAlignBaseline\fR - align the baseline of the element (or the bottom, if the element doesn't have a baseline) with the baseline of the parent
\fCTQStyleSheetItem::VAlignBaseline\fR - align the baseline of the element (or the bottom, if the element doesn't have a baseline) with the baseline of the parent
.TP
.TP
\fCQStyleSheetItem::VAlignSub\fR - subscript the element
\fCTQStyleSheetItem::VAlignSub\fR - subscript the element
.TP
.TP
\fCQStyleSheetItem::VAlignSuper\fR - superscript the element
\fCTQStyleSheetItem::VAlignSuper\fR - superscript the element
.SH "QStyleSheetItem::WhiteSpaceMode"
.SH "TQStyleSheetItem::WhiteSpaceMode"
This enum defines the ways in which QStyleSheet can treat whitespace.
This enum defines the ways in which TQStyleSheet can treat whitespace.
.TP
.TP
\fCQStyleSheetItem::WhiteSpaceNormal\fR - any sequence of whitespace (including line-breaks) is equivalent to a single space.
\fCTQStyleSheetItem::WhiteSpaceNormal\fR - any sequence of whitespace (including line-breaks) is equivalent to a single space.
.TP
.TP
\fCQStyleSheetItem::WhiteSpacePre\fR - whitespace must be output exactly as given in the input.
\fCTQStyleSheetItem::WhiteSpacePre\fR - whitespace must be output exactly as given in the input.
.TP
.TP
\fCQStyleSheetItem::WhiteSpaceNoWrap\fR - multiple spaces are collapsed as with WhiteSpaceNormal, but no automatic line-breaks occur. To break lines manually, use the \fC<br>\fR tag.
\fCTQStyleSheetItem::WhiteSpaceNoWrap\fR - multiple spaces are collapsed as with WhiteSpaceNormal, but no automatic line-breaks occur. To break lines manually, use the \fC<br>\fR tag.
Returns a space-separated list of names of styles that may contain elements of this style. If nothing has been set, contexts() returns an empty string, which indicates that this style can be nested everywhere.
Returns a space-separated list of names of styles that may contain elements of this style. If nothing has been set, contexts() returns an empty string, which indicates that this style can be nested everywhere.
Returns TRUE if the style defines a setting for the strikeOut property of the font; otherwise returns FALSE. A style does not define this until setFontStrikeOut() is called.
Returns TRUE if the style defines a setting for the strikeOut property of the font; otherwise returns FALSE. A style does not define this until setFontStrikeOut() is called.
Returns TRUE if the style defines a setting for the underline property of the font; otherwise returns FALSE. A style does not define this until setFontUnderline() is called.
Returns TRUE if the style defines a setting for the underline property of the font; otherwise returns FALSE. A style does not define this until setFontUnderline() is called.
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
.PP
Returns the number of columns for this style.
Returns the number of columns for this style.
.PP
.PP
See also setNumberOfColumns(), displayMode(), and setDisplayMode().
See also setNumberOfColumns(), displayMode(), and setDisplayMode().
.SH "QStyleSheetItem & QStyleSheetItem::operator= ( const QStyleSheetItem & other )"
.SH "TQStyleSheetItem & TQStyleSheetItem::operator= ( const TQStyleSheetItem & other )"
Assignment. Assings a copy of \fIother\fR that is not bound to any style sheet. Unbounds first from previous style sheet.
Assignment. Assings a copy of \fIother\fR that is not bound to any style sheet. Unbounds first from previous style sheet.
.SH "bool QStyleSheetItem::selfNesting () const"
.SH "bool TQStyleSheetItem::selfNesting () const"
Returns TRUE if this style has self-nesting enabled; otherwise returns FALSE.
Returns TRUE if this style has self-nesting enabled; otherwise returns FALSE.
.PP
.PP
See also setSelfNesting().
See also setSelfNesting().
.SH "void QStyleSheetItem::setAlignment ( int f )"
.SH "void TQStyleSheetItem::setAlignment ( int f )"
Sets the alignment to \fIf\fR. This only makes sense for styles with a display mode of DisplayBlock. Possible values are AlignAuto, AlignLeft, AlignRight, AlignCenter or AlignJustify.
Sets the alignment to \fIf\fR. This only makes sense for styles with a display mode of DisplayBlock. Possible values are AlignAuto, AlignLeft, AlignRight, AlignCenter or AlignJustify.
.PP
.PP
See also alignment(), displayMode(), and TQt::AlignmentFlags.
See also alignment(), displayMode(), and TQt::AlignmentFlags.
If \fIanc\fR is TRUE, sets this style to be an anchor (hypertext link); otherwise sets it to not be an anchor. Elements in this style link to other documents or anchors.
If \fIanc\fR is TRUE, sets this style to be an anchor (hypertext link); otherwise sets it to not be an anchor. Elements in this style link to other documents or anchors.
.PP
.PP
See also isAnchor().
See also isAnchor().
.SH "void QStyleSheetItem::setColor ( const TQColor & c )"
.SH "void TQStyleSheetItem::setColor ( const TQColor & c )"
Sets the text color of this style to \fIc\fR.
Sets the text color of this style to \fIc\fR.
.PP
.PP
See also color().
See also color().
.SH "void QStyleSheetItem::setContexts ( const TQString & c )"
.SH "void TQStyleSheetItem::setContexts ( const TQString & c )"
Sets a space-separated list of names of styles that may contain elements of this style. If \fIc\fR is empty, the style can be nested everywhere.
Sets a space-separated list of names of styles that may contain elements of this style. If \fIc\fR is empty, the style can be nested everywhere.
.PP
.PP
See also contexts().
See also contexts().
.SH "void QStyleSheetItem::setDisplayMode ( DisplayMode m )"
.SH "void TQStyleSheetItem::setDisplayMode ( DisplayMode m )"
If \fIunderline\fR is TRUE, sets underline for the style; otherwise sets no underline.
If \fIunderline\fR is TRUE, sets underline for the style; otherwise sets no underline.
.PP
.PP
See also fontUnderline() and definesFontUnderline().
See also fontUnderline() and definesFontUnderline().
.SH "void QStyleSheetItem::setFontWeight ( int w )"
.SH "void TQStyleSheetItem::setFontWeight ( int w )"
Sets the font weight setting of the style to \fIw\fR. Valid values are those defined by QFont::Weight.
Sets the font weight setting of the style to \fIw\fR. Valid values are those defined by QFont::Weight.
.PP
.PP
See also QFont and fontWeight().
See also QFont and fontWeight().
.SH "void QStyleSheetItem::setListStyle ( ListStyle s )"
.SH "void TQStyleSheetItem::setListStyle ( ListStyle s )"
Sets the list style of the style to \fIs\fR.
Sets the list style of the style to \fIs\fR.
.PP
.PP
This is used by nested elements that have a display mode of DisplayListItem.
This is used by nested elements that have a display mode of DisplayListItem.
.PP
.PP
See also listStyle(), DisplayMode, and ListStyle.
See also listStyle(), DisplayMode, and ListStyle.
.SH "void QStyleSheetItem::setLogicalFontSize ( int s )"
.SH "void TQStyleSheetItem::setLogicalFontSize ( int s )"
Sets the logical font size setting of the style to \fIs\fR. Valid logical sizes are 1 to 7.
Sets the logical font size setting of the style to \fIs\fR. Valid logical sizes are 1 to 7.
.PP
.PP
See also logicalFontSize(), QFont::pointSize(), and QFont::setPointSize().
See also logicalFontSize(), QFont::pointSize(), and QFont::setPointSize().
.SH "void QStyleSheetItem::setLogicalFontSizeStep ( int s )"
.SH "void TQStyleSheetItem::setLogicalFontSizeStep ( int s )"
Sets the logical font size step of this style to \fIs\fR.
Sets the logical font size step of this style to \fIs\fR.
.PP
.PP
See also logicalFontSizeStep().
See also logicalFontSizeStep().
.SH "void QStyleSheetItem::setMargin ( Margin m, int v )"
.SH "void TQStyleSheetItem::setMargin ( Margin m, int v )"
Sets the width of margin \fIm\fR to \fIv\fR pixels.
Sets the width of margin \fIm\fR to \fIv\fR pixels.
.PP
.PP
The margin, \fIm\fR, can be MarginLeft, MarginRight, MarginTop, MarginBottom, MarginFirstLine, MarginAll, MarginVertical or MarginHorizontal. The value \fIv\fR must be >= 0.
The margin, \fIm\fR, can be MarginLeft, MarginRight, MarginTop, MarginBottom, MarginFirstLine, MarginAll, MarginVertical or MarginHorizontal. The value \fIv\fR must be >= 0.
.PP
.PP
See also margin().
See also margin().
.SH "void QStyleSheetItem::setNumberOfColumns ( int ncols )"
.SH "void TQStyleSheetItem::setNumberOfColumns ( int ncols )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
.PP
Sets the number of columns for this style. Elements in the style are divided into columns.
Sets the number of columns for this style. Elements in the style are divided into columns.
.PP
.PP
This makes sense only if the style uses a block display mode (see QStyleSheetItem::DisplayMode).
This makes sense only if the style uses a block display mode (see TQStyleSheetItem::DisplayMode).
Sets the self-nesting property for this style to \fInesting\fR.
Sets the self-nesting property for this style to \fInesting\fR.
.PP
.PP
In order to support "dirty" HTML, paragraphs \fC<p>\fR and list items \fC<li>\fR are not self-nesting. This means that starting a new paragraph or list item automatically closes the previous one.
In order to support "dirty" HTML, paragraphs \fC<p>\fR and list items \fC<li>\fR are not self-nesting. This means that starting a new paragraph or list item automatically closes the previous one.
@ -106,7 +106,7 @@ If you intend using the mime factory to read the data directly from the file sys
.fi
.fi
This is to ensure that the factory is able to resolve the document names.
This is to ensure that the factory is able to resolve the document names.
.PP
.PP
TQTextBrowser interprets the tags it processes in accordance with the default style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details.
TQTextBrowser interprets the tags it processes in accordance with the default style sheet. Change the style sheet with setStyleSheet(); see TQStyleSheet for details.
.PP
.PP
If you want to provide your users with editable rich text use TQTextEdit. If you want a text browser without hypertext navigation use TQTextEdit, and use TQTextEdit::setReadOnly() to disable editing. If you just need to display a small piece of rich text use QSimpleRichText or QLabel.
If you want to provide your users with editable rich text use TQTextEdit. If you want a text browser without hypertext navigation use TQTextEdit, and use TQTextEdit::setReadOnly() to disable editing. If you just need to display a small piece of rich text use QSimpleRichText or QLabel.
.BI "virtual void \fBscrollToAnchor\fR ( const TQString & name )"
.BI "virtual void \fBscrollToAnchor\fR ( const TQString & name )"
@ -551,11 +551,11 @@ The text edit documentation uses the following concepts:
.TP
.TP
\fIcurrent paragraph\fR -- the paragraph which contains the cursor.
\fIcurrent paragraph\fR -- the paragraph which contains the cursor.
.PP
.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
.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.
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
.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
.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.
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"
.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
.br
log->setTextFormat( TQt::LogText );
log->setTextFormat( TQt::LogText );
.br
.br
QStyleSheetItem * item = new QStyleSheetItem( log->styleSheet(), "mytag" );
TQStyleSheetItem * item = new TQStyleSheetItem( log->styleSheet(), "mytag" );
.br
.br
item->setColor( "red" );
item->setColor( "red" );
.br
.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>!" );
log->append( "This is a <mytag>custom tag</mytag>!" );
.br
.br
.fi
.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
.PP
Note that you can use setMaxLogLines() to limit the number of lines the widget can hold in LogText mode.
Note that you can use setMaxLogLines() to limit the number of lines the widget can hold in LogText mode.
.PP
.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.
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
.PP
This only works for \fIselNum\fR > 0. The default selection (\fIselNum\fR == 0) gets its attributes from the text edit's colorGroup().
This only works for \fIselNum\fR > 0. The default selection (\fIselNum\fR == 0) gets its attributes from the text edit's colorGroup().
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().
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
.PP
See also styleSheet().
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
.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.
\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
.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
.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.
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
.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.
Sets the position (in pixels or columns depending on the wrap mode) where text will be wrapped. See the "wrapColumnOrWidth" property for details.
Returns the QStyleSheet which is being used by this text edit.
Returns the TQStyleSheet which is being used by this text edit.
.PP
.PP
See also setStyleSheet().
See also setStyleSheet().
.PP
.PP
@ -1378,11 +1378,11 @@ The text format is one of the following:
.TP
.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.
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
.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
.TP
LogText - optimized mode for very large texts. Supports a very limited set of formatting tags (color, bold, underline and italic settings).
LogText - optimized mode for very large texts. Supports a very limited set of formatting tags (color, bold, underline and italic settings).
.TP
.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
.PP
Set this property's value with setTextFormat() and get this property's value with textFormat().
Set this property's value with setTextFormat() and get this property's value with textFormat().
@ -70,7 +70,7 @@ QWhatsThis provides a single window with an explanatory text that pops up when t
.PP
.PP
To add "What's this?" text to a widget you simply call QWhatsThis::add() for the widget. For example, to assign text to a menu item, call QMenuData::setWhatsThis(); for a global accelerator key, call QAccel::setWhatsThis() and If you're using actions, use QAction::setWhatsThis().
To add "What's this?" text to a widget you simply call QWhatsThis::add() for the widget. For example, to assign text to a menu item, call QMenuData::setWhatsThis(); for a global accelerator key, call QAccel::setWhatsThis() and If you're using actions, use QAction::setWhatsThis().
.PP
.PP
The text can be either rich text or plain text. If you specify a rich text formatted string, it will be rendered using the default stylesheet. This makes it possible to embed images. See QStyleSheet::defaultSheet() for details.
The text can be either rich text or plain text. If you specify a rich text formatted string, it will be rendered using the default stylesheet. This makes it possible to embed images. See TQStyleSheet::defaultSheet() for details.
.PP
.PP
.nf
.nf
.br
.br
@ -114,7 +114,7 @@ When the widget is queried by the user the text() function of this QWhatsThis wi
.SH "QWhatsThis::~QWhatsThis ()\fC [virtual]\fR"
.SH "QWhatsThis::~QWhatsThis ()\fC [virtual]\fR"
Destroys the object and frees any allocated resources.
Destroys the object and frees any allocated resources.
Adds \fItext\fR as "What's this" help for \fIwidget\fR. If the text is rich text formatted (i.e. it contains markup) it will be rendered with the default stylesheet QStyleSheet::defaultSheet().
Adds \fItext\fR as "What's this" help for \fIwidget\fR. If the text is rich text formatted (i.e. it contains markup) it will be rendered with the default stylesheet TQStyleSheet::defaultSheet().
.PP
.PP
The text is destroyed if the widget is later destroyed, so it need not be explicitly removed.
The text is destroyed if the widget is later destroyed, so it need not be explicitly removed.
@ -2205,7 +2205,7 @@ This is an overloaded member function, provided for convenience. It behaves esse
Sets the size policy of the widget to \fIhor\fR, \fIver\fR and \fIhfw\fR (height for width).
Sets the size policy of the widget to \fIhor\fR, \fIver\fR and \fIhfw\fR (height for width).
.PP
.PP
See also QSizePolicy::QSizePolicy().
See also QSizePolicy::QSizePolicy().
.SH "void TQWidget::setStyle ( QStyle * style )"
.SH "void TQWidget::setStyle ( TQStyle * style )"
Sets the widget's GUI style to \fIstyle\fR. Ownership of the style object is not transferred.
Sets the widget's GUI style to \fIstyle\fR. Ownership of the style object is not transferred.
.PP
.PP
If no style is set, the widget uses the application's style, QApplication::style() instead.
If no style is set, the widget uses the application's style, QApplication::style() instead.
@ -2214,14 +2214,14 @@ Setting a widget's style has no effect on existing or future child widgets.
.PP
.PP
\fBWarning:\fR This function is particularly useful for demonstration purposes, where you want to show Qt's styling capabilities. Real applications should avoid it and use one consistent GUI style instead.
\fBWarning:\fR This function is particularly useful for demonstration purposes, where you want to show Qt's styling capabilities. Real applications should avoid it and use one consistent GUI style instead.
.PP
.PP
See also style(), QStyle, QApplication::style(), and QApplication::setStyle().
See also style(), TQStyle, QApplication::style(), and QApplication::setStyle().
.PP
.PP
Examples:
Examples:
.)l grapher/grapher.cpp and progressbar/progressbar.cpp.
.)l grapher/grapher.cpp and progressbar/progressbar.cpp.
Moves the \fIsecond\fR widget around the ring of focus widgets so that keyboard focus moves from the \fIfirst\fR widget to the \fIsecond\fR widget when the Tab key is pressed.
Moves the \fIsecond\fR widget around the ring of focus widgets so that keyboard focus moves from the \fIfirst\fR widget to the \fIsecond\fR widget when the Tab key is pressed.
.PP
.PP
@ -2362,11 +2362,11 @@ Places the widget under \fIw\fR in the parent widget's stack.
To make this work, the widget itself and \fIw\fR must be siblings.
To make this work, the widget itself and \fIw\fR must be siblings.
.PP
.PP
See also raise() and lower().
See also raise() and lower().
.SH "QStyle & TQWidget::style () const"
.SH "TQStyle & TQWidget::style () const"
Returns the GUI style for this widget
Returns the GUI style for this widget
.PP
.PP
See also TQWidget::setStyle(), QApplication::setStyle(), and QApplication::style().
See also TQWidget::setStyle(), QApplication::setStyle(), and QApplication::style().
This virtual function is called when the style of the widgets changes. \fIoldStyle\fR is the previous GUI style; you can get the new style from style().
This virtual function is called when the style of the widgets changes. \fIoldStyle\fR is the previous GUI style; you can get the new style from style().
.PP
.PP
Reimplement this function if your widget needs to know when its GUI style changes. You will almost certainly need to update the widget using update().
Reimplement this function if your widget needs to know when its GUI style changes. You will almost certainly need to update the widget using update().