Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 4691

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- q3stylesheet.cpp -->
  <title>Qt 4.8: Q3StyleSheetItem Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li>Qt3SupportLight</li>
<li>Q3StyleSheetItem</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">Q3StyleSheetItem Class Reference</h1>
<!-- $$$Q3StyleSheetItem-brief -->
<p>The Q3StyleSheetItem class provides an encapsulation of a set of text styles. <a href="#details">More...</a></p>
<!-- @@@Q3StyleSheetItem -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3StyleSheetItem&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html">Porting to Qt 4</a> for more information.</p>
<ul>
<li><a href="q3stylesheetitem-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#DisplayMode-enum">DisplayMode</a></b> { DisplayBlock, DisplayInline, DisplayListItem, DisplayNone }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#ListStyle-enum">ListStyle</a></b> { ListDisc, ListCircle, ListSquare, ListDecimal, ListLowerAlpha, ListUpperAlpha }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#Margin-enum">Margin</a></b> { MarginLeft, MarginRight, MarginTop, MarginBottom, ..., MarginUndefined }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#VerticalAlignment-enum">VerticalAlignment</a></b> { VAlignBaseline, VAlignSub, VAlignSuper }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#WhiteSpaceMode-enum">WhiteSpaceMode</a></b> { WhiteSpaceNormal, WhiteSpacePre, WhiteSpaceNoWrap }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#Q3StyleSheetItem">Q3StyleSheetItem</a></b> ( Q3StyleSheet * <i>parent</i>, const QString &amp; <i>name</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#Q3StyleSheetItem-2">Q3StyleSheetItem</a></b> ( const Q3StyleSheetItem &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#dtor.Q3StyleSheetItem">~Q3StyleSheetItem</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#alignment">alignment</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#allowedInContext">allowedInContext</a></b> ( const Q3StyleSheetItem * <i>s</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QColor </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#color">color</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#contexts">contexts</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#definesFontItalic">definesFontItalic</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#definesFontStrikeOut">definesFontStrikeOut</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#definesFontUnderline">definesFontUnderline</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> DisplayMode </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#displayMode">displayMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#fontFamily">fontFamily</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#fontItalic">fontItalic</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#fontSize">fontSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#fontStrikeOut">fontStrikeOut</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#fontUnderline">fontUnderline</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#fontWeight">fontWeight</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#isAnchor">isAnchor</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#lineSpacing">lineSpacing</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ListStyle </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#listStyle">listStyle</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#logicalFontSize">logicalFontSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#logicalFontSizeStep">logicalFontSizeStep</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#margin">margin</a></b> ( Margin <i>m</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#name">name</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#numberOfColumns">numberOfColumns</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#selfNesting">selfNesting</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setAlignment">setAlignment</a></b> ( int <i>f</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setAnchor">setAnchor</a></b> ( bool <i>anc</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setColor">setColor</a></b> ( const QColor &amp; <i>c</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setContexts">setContexts</a></b> ( const QString &amp; <i>c</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setDisplayMode">setDisplayMode</a></b> ( DisplayMode <i>m</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setFontFamily">setFontFamily</a></b> ( const QString &amp; <i>fam</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setFontItalic">setFontItalic</a></b> ( bool <i>italic</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setFontSize">setFontSize</a></b> ( int <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setFontStrikeOut">setFontStrikeOut</a></b> ( bool <i>strikeOut</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setFontUnderline">setFontUnderline</a></b> ( bool <i>underline</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setFontWeight">setFontWeight</a></b> ( int <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setListStyle">setListStyle</a></b> ( ListStyle <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setLogicalFontSize">setLogicalFontSize</a></b> ( int <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setLogicalFontSizeStep">setLogicalFontSizeStep</a></b> ( int <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setMargin">setMargin</a></b> ( Margin <i>m</i>, int <i>v</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setNumberOfColumns">setNumberOfColumns</a></b> ( int <i>ncols</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setSelfNesting">setSelfNesting</a></b> ( bool <i>nesting</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setVerticalAlignment">setVerticalAlignment</a></b> ( VerticalAlignment <i>valign</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#setWhiteSpaceMode">setWhiteSpaceMode</a></b> ( WhiteSpaceMode <i>m</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3StyleSheet * </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#styleSheet">styleSheet</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const Q3StyleSheet * </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#styleSheet-2">styleSheet</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> VerticalAlignment </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#verticalAlignment">verticalAlignment</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> WhiteSpaceMode </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#whiteSpaceMode">whiteSpaceMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3StyleSheetItem &amp; </td><td class="memItemRight bottomAlign"><b><a href="q3stylesheetitem.html#operator-eq">operator=</a></b> ( const Q3StyleSheetItem &amp; <i>other</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$Q3StyleSheetItem-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3StyleSheetItem class provides an encapsulation of a set of text styles.</p>
<p>A style sheet item consists of a name and a set of attributes that specify its font, color, etc. When used in a <a href="q3stylesheet.html">style sheet</a> (see <a href="q3stylesheetitem.html#styleSheet">styleSheet</a>()), items define the <a href="q3stylesheetitem.html#name">name</a>() of a rich text tag and the display property changes associated with it.</p>
<p>The <a href="q3stylesheetitem.html#DisplayMode-enum">display mode</a> attribute indicates whether the item is a block, an inline element or a list element; see <a href="q3stylesheetitem.html#setDisplayMode">setDisplayMode</a>(). The treatment of whitespace is controlled by the <a href="q3stylesheetitem.html#WhiteSpaceMode-enum">white space mode</a>; see <a href="q3stylesheetitem.html#setWhiteSpaceMode">setWhiteSpaceMode</a>(). An item's margins are set with <a href="q3stylesheetitem.html#setMargin">setMargin</a>(), In the case of list items, the list style is set with <a href="q3stylesheetitem.html#setListStyle">setListStyle</a>(). An item may be a hypertext link anchor; see <a href="q3stylesheetitem.html#setAnchor">setAnchor</a>(). Other attributes are set with <a href="q3stylesheetitem.html#setAlignment">setAlignment</a>(), <a href="q3stylesheetitem.html#setVerticalAlignment">setVerticalAlignment</a>(), <a href="q3stylesheetitem.html#setFontFamily">setFontFamily</a>(), <a href="q3stylesheetitem.html#setFontSize">setFontSize</a>(), <a href="q3stylesheetitem.html#setFontWeight">setFontWeight</a>(), <a href="q3stylesheetitem.html#setFontItalic">setFontItalic</a>(), <a href="q3stylesheetitem.html#setFontUnderline">setFontUnderline</a>(), setFontStrikeOut and <a href="q3stylesheetitem.html#setColor">setColor</a>().</p>
</div>
<!-- @@@Q3StyleSheetItem -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$DisplayMode$$$DisplayBlock$$$DisplayInline$$$DisplayListItem$$$DisplayNone$$$DisplayModeUndefined -->
<h3 class="fn"><a name="DisplayMode-enum"></a>enum Q3StyleSheetItem::<span class="name">DisplayMode</span></h3>
<p>This enum type defines the way adjacent elements are displayed.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::DisplayBlock</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">elements are displayed as a rectangular block (e.g&#x2e; <tt>&lt;p&gt;..&#x2e;&lt;/p&gt;</tt>).</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::DisplayInline</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">elements are displayed in a horizontally flowing sequence (e.g&#x2e; <tt>&lt;em&gt;..&#x2e;&lt;/em&gt;</tt>).</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::DisplayListItem</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">elements are displayed in a vertical sequence (e.g&#x2e; <tt>&lt;li&gt;..&#x2e;&lt;/li&gt;</tt>).</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::DisplayNone</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">elements are not displayed at all.</td></tr>
</table>
<!-- @@@DisplayMode -->
<!-- $$$ListStyle$$$ListDisc$$$ListCircle$$$ListSquare$$$ListDecimal$$$ListLowerAlpha$$$ListUpperAlpha$$$ListStyleUndefined -->
<h3 class="fn"><a name="ListStyle-enum"></a>enum Q3StyleSheetItem::<span class="name">ListStyle</span></h3>
<p>This enum type defines how the items in a list are prefixed when displayed.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::ListDisc</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">a filled circle (i.e&#x2e; a bullet)</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::ListCircle</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">an unfilled circle</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::ListSquare</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">a filled square</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::ListDecimal</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">an integer in base 10: <i>1</i>, <i>2</i>, <i>3</i>, ..&#x2e;</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::ListLowerAlpha</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">a lowercase letter: <i>a</i>, <i>b</i>, <i>c</i>, ..&#x2e;</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::ListUpperAlpha</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">an uppercase letter: <i>A</i>, <i>B</i>, <i>C</i>, ..&#x2e;</td></tr>
</table>
<!-- @@@ListStyle -->
<!-- $$$Margin$$$MarginLeft$$$MarginRight$$$MarginTop$$$MarginBottom$$$MarginFirstLine$$$MarginAll$$$MarginVertical$$$MarginHorizontal$$$MarginUndefined -->
<h3 class="fn"><a name="Margin-enum"></a>enum Q3StyleSheetItem::<span class="name">Margin</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginLeft</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">left margin</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginRight</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">right margin</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginTop</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">top margin</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginBottom</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">bottom margin</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginAll</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">all margins (left, right, top and bottom)</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginVertical</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">top and bottom margins</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginHorizontal</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">left and right margins</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginFirstLine</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">margin (indentation) of the first line of a paragarph (in addition to the MarginLeft of the paragraph)</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::MarginUndefined</tt></td><td class="topAlign"><tt>-1</tt></td><td class="topAlign">&nbsp;</td></tr>
</table>
<!-- @@@Margin -->
<!-- $$$VerticalAlignment$$$VAlignBaseline$$$VAlignSub$$$VAlignSuper -->
<h3 class="fn"><a name="VerticalAlignment-enum"></a>enum Q3StyleSheetItem::<span class="name">VerticalAlignment</span></h3>
<p>This enum type defines the way elements are aligned vertically. This is only supported for text elements.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::VAlignBaseline</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">align the baseline of the element (or the bottom, if the element doesn't have a baseline) with the baseline of the parent</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::VAlignSub</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">subscript the element</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::VAlignSuper</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">superscript the element</td></tr>
</table>
<!-- @@@VerticalAlignment -->
<!-- $$$WhiteSpaceMode$$$WhiteSpaceNormal$$$WhiteSpacePre$$$WhiteSpaceNoWrap$$$WhiteSpaceModeUndefined -->
<h3 class="fn"><a name="WhiteSpaceMode-enum"></a>enum Q3StyleSheetItem::<span class="name">WhiteSpaceMode</span></h3>
<p>This enum defines the ways in which <a href="q3stylesheet.html" class="compat">Q3StyleSheet</a> can treat whitespace.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::WhiteSpaceNormal</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">any sequence of whitespace (including line-breaks) is equivalent to a single space.</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::WhiteSpacePre</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">whitespace must be output exactly as given in the input.</td></tr>
<tr><td class="topAlign"><tt>Q3StyleSheetItem::WhiteSpaceNoWrap</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">multiple spaces are collapsed as with WhiteSpaceNormal, but no automatic line-breaks occur. To break lines manually, use the <tt>&lt;br&gt;</tt> tag.</td></tr>
</table>
<!-- @@@WhiteSpaceMode -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3StyleSheetItem[overload1]$$$Q3StyleSheetItemQ3StyleSheet*constQString& -->
<h3 class="fn"><a name="Q3StyleSheetItem"></a>Q3StyleSheetItem::<span class="name">Q3StyleSheetItem</span> ( <span class="type"><a href="q3stylesheet.html">Q3StyleSheet</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>name</i> )</h3>
<p>Constructs a new style called <i>name</i> for the stylesheet <i>parent</i>.</p>
<p>All properties in <a href="q3stylesheetitem.html" class="compat">Q3StyleSheetItem</a> are initially in the &quot;do not change&quot; state, except <a href="q3stylesheetitem.html#DisplayMode-enum">display mode</a>, which defaults to <tt>DisplayInline</tt>.</p>
<!-- @@@Q3StyleSheetItem -->
<!-- $$$Q3StyleSheetItem$$$Q3StyleSheetItemconstQ3StyleSheetItem& -->
<h3 class="fn"><a name="Q3StyleSheetItem-2"></a>Q3StyleSheetItem::<span class="name">Q3StyleSheetItem</span> ( const <span class="type">Q3StyleSheetItem</span> &amp; <i>other</i> )</h3>
<p>Copy constructor. Constructs a copy of <i>other</i> that is not bound to any style sheet.</p>
<!-- @@@Q3StyleSheetItem -->
<!-- $$$~Q3StyleSheetItem[overload1]$$$~Q3StyleSheetItem -->
<h3 class="fn"><a name="dtor.Q3StyleSheetItem"></a>Q3StyleSheetItem::<span class="name">~Q3StyleSheetItem</span> ()</h3>
<p>Destroys the style. Note that <a href="q3stylesheetitem.html" class="compat">Q3StyleSheetItem</a> objects become owned by <a href="q3stylesheet.html" class="compat">Q3StyleSheet</a> when they are created.</p>
<!-- @@@~Q3StyleSheetItem -->
<!-- $$$alignment[overload1]$$$alignment -->
<h3 class="fn"><a name="alignment"></a><span class="type">int</span> Q3StyleSheetItem::<span class="name">alignment</span> () const</h3>
<p>Returns the alignment of this style. Possible values are <a href="qt.html#AlignmentFlag-enum">Qt::AlignAuto</a>, <a href="qt.html#AlignmentFlag-enum">Qt::AlignLeft</a>, <a href="qt.html#AlignmentFlag-enum">Qt::AlignRight</a>, <a href="qt.html#AlignmentFlag-enum">Qt::AlignCenter</a> or <a href="qt.html#AlignmentFlag-enum">Qt::AlignJustify</a>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setAlignment">setAlignment</a>() and <a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a>.</p>
<!-- @@@alignment -->
<!-- $$$allowedInContext[overload1]$$$allowedInContextconstQ3StyleSheetItem* -->
<h3 class="fn"><a name="allowedInContext"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">allowedInContext</span> ( const <span class="type">Q3StyleSheetItem</span> * <i>s</i> ) const</h3>
<p>Returns true if this style can be nested into an element of style <i>s</i>; otherwise returns false.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#contexts">contexts</a>() and <a href="q3stylesheetitem.html#setContexts">setContexts</a>().</p>
<!-- @@@allowedInContext -->
<!-- $$$color[overload1]$$$color -->
<h3 class="fn"><a name="color"></a><span class="type"><a href="qcolor.html">QColor</a></span> Q3StyleSheetItem::<span class="name">color</span> () const</h3>
<p>Returns the text color of this style or an invalid color if no color has been set.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setColor">setColor</a>() and <a href="qcolor.html#isValid">QColor::isValid</a>().</p>
<!-- @@@color -->
<!-- $$$contexts[overload1]$$$contexts -->
<h3 class="fn"><a name="contexts"></a><span class="type"><a href="qstring.html">QString</a></span> Q3StyleSheetItem::<span class="name">contexts</span> () const</h3>
<p>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.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setContexts">setContexts</a>().</p>
<!-- @@@contexts -->
<!-- $$$definesFontItalic[overload1]$$$definesFontItalic -->
<h3 class="fn"><a name="definesFontItalic"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">definesFontItalic</span> () const</h3>
<p>Returns true if the style defines a font shape; otherwise returns false. A style does not define any shape until <a href="q3stylesheetitem.html#setFontItalic">setFontItalic</a>() is called.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontItalic">setFontItalic</a>() and <a href="q3stylesheetitem.html#fontItalic">fontItalic</a>().</p>
<!-- @@@definesFontItalic -->
<!-- $$$definesFontStrikeOut[overload1]$$$definesFontStrikeOut -->
<h3 class="fn"><a name="definesFontStrikeOut"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">definesFontStrikeOut</span> () const</h3>
<p>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 <a href="q3stylesheetitem.html#setFontStrikeOut">setFontStrikeOut</a>() is called.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontStrikeOut">setFontStrikeOut</a>() and <a href="q3stylesheetitem.html#fontStrikeOut">fontStrikeOut</a>().</p>
<!-- @@@definesFontStrikeOut -->
<!-- $$$definesFontUnderline[overload1]$$$definesFontUnderline -->
<h3 class="fn"><a name="definesFontUnderline"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">definesFontUnderline</span> () const</h3>
<p>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 <a href="q3stylesheetitem.html#setFontUnderline">setFontUnderline</a>() is called.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontUnderline">setFontUnderline</a>() and <a href="q3stylesheetitem.html#fontUnderline">fontUnderline</a>().</p>
<!-- @@@definesFontUnderline -->
<!-- $$$displayMode[overload1]$$$displayMode -->
<h3 class="fn"><a name="displayMode"></a><span class="type"><a href="q3stylesheetitem.html#DisplayMode-enum">DisplayMode</a></span> Q3StyleSheetItem::<span class="name">displayMode</span> () const</h3>
<p>Returns the <a href="q3stylesheetitem.html#DisplayMode-enum">display mode</a> of the style.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setDisplayMode">setDisplayMode</a>().</p>
<!-- @@@displayMode -->
<!-- $$$fontFamily[overload1]$$$fontFamily -->
<h3 class="fn"><a name="fontFamily"></a><span class="type"><a href="qstring.html">QString</a></span> Q3StyleSheetItem::<span class="name">fontFamily</span> () const</h3>
<p>Returns the style's font family setting. This is either a valid font family or an empty string if no family has been set.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontFamily">setFontFamily</a>(), <a href="qfont.html#family">QFont::family</a>(), and <a href="qfont.html#setFamily">QFont::setFamily</a>().</p>
<!-- @@@fontFamily -->
<!-- $$$fontItalic[overload1]$$$fontItalic -->
<h3 class="fn"><a name="fontItalic"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">fontItalic</span> () const</h3>
<p>Returns true if the style sets an italic font; otherwise returns false.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontItalic">setFontItalic</a>() and <a href="q3stylesheetitem.html#definesFontItalic">definesFontItalic</a>().</p>
<!-- @@@fontItalic -->
<!-- $$$fontSize[overload1]$$$fontSize -->
<h3 class="fn"><a name="fontSize"></a><span class="type">int</span> Q3StyleSheetItem::<span class="name">fontSize</span> () const</h3>
<p>Returns the font size setting of the style. This is either a valid point size or Q3StyleSheetItem::Undefined.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontSize">setFontSize</a>(), <a href="qfont.html#pointSize">QFont::pointSize</a>(), and <a href="qfont.html#setPointSize">QFont::setPointSize</a>().</p>
<!-- @@@fontSize -->
<!-- $$$fontStrikeOut[overload1]$$$fontStrikeOut -->
<h3 class="fn"><a name="fontStrikeOut"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">fontStrikeOut</span> () const</h3>
<p>Returns true if the style sets a strike out font; otherwise returns false.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontStrikeOut">setFontStrikeOut</a>() and <a href="q3stylesheetitem.html#definesFontStrikeOut">definesFontStrikeOut</a>().</p>
<!-- @@@fontStrikeOut -->
<!-- $$$fontUnderline[overload1]$$$fontUnderline -->
<h3 class="fn"><a name="fontUnderline"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">fontUnderline</span> () const</h3>
<p>Returns true if the style sets an underlined font; otherwise returns false.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontUnderline">setFontUnderline</a>() and <a href="q3stylesheetitem.html#definesFontUnderline">definesFontUnderline</a>().</p>
<!-- @@@fontUnderline -->
<!-- $$$fontWeight[overload1]$$$fontWeight -->
<h3 class="fn"><a name="fontWeight"></a><span class="type">int</span> Q3StyleSheetItem::<span class="name">fontWeight</span> () const</h3>
<p>Returns the font weight setting of the style. This is either a valid <a href="qfont.html#Weight-enum">QFont::Weight</a> or the value Q3StyleSheetItem::Undefined.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setFontWeight">setFontWeight</a>() and <a href="qfont.html">QFont</a>.</p>
<!-- @@@fontWeight -->
<!-- $$$isAnchor[overload1]$$$isAnchor -->
<h3 class="fn"><a name="isAnchor"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">isAnchor</span> () const</h3>
<p>Returns whether this style is an anchor.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setAnchor">setAnchor</a>().</p>
<!-- @@@isAnchor -->
<!-- $$$lineSpacing[overload1]$$$lineSpacing -->
<h3 class="fn"><a name="lineSpacing"></a><span class="type">int</span> Q3StyleSheetItem::<span class="name">lineSpacing</span> () const</h3>
<p>Returns the line spacing.</p>
<!-- @@@lineSpacing -->
<!-- $$$listStyle[overload1]$$$listStyle -->
<h3 class="fn"><a name="listStyle"></a><span class="type"><a href="q3stylesheetitem.html#ListStyle-enum">ListStyle</a></span> Q3StyleSheetItem::<span class="name">listStyle</span> () const</h3>
<p>Returns the list style of the style.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setListStyle">setListStyle</a>() and <a href="q3stylesheetitem.html#ListStyle-enum">ListStyle</a>.</p>
<!-- @@@listStyle -->
<!-- $$$logicalFontSize[overload1]$$$logicalFontSize -->
<h3 class="fn"><a name="logicalFontSize"></a><span class="type">int</span> Q3StyleSheetItem::<span class="name">logicalFontSize</span> () const</h3>
<p>Returns the logical font size setting of the style. This is either a valid size between 1 and 7 or Q3StyleSheetItem::Undefined.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setLogicalFontSize">setLogicalFontSize</a>(), <a href="q3stylesheetitem.html#setLogicalFontSizeStep">setLogicalFontSizeStep</a>(), <a href="qfont.html#pointSize">QFont::pointSize</a>(), and <a href="qfont.html#setPointSize">QFont::setPointSize</a>().</p>
<!-- @@@logicalFontSize -->
<!-- $$$logicalFontSizeStep[overload1]$$$logicalFontSizeStep -->
<h3 class="fn"><a name="logicalFontSizeStep"></a><span class="type">int</span> Q3StyleSheetItem::<span class="name">logicalFontSizeStep</span> () const</h3>
<p>Returns the logical font size step of this style.</p>
<p>The default is 0. Tags such as <tt>big</tt> define <tt>+1</tt>; <tt>small</tt> defines <tt>-1</tt>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setLogicalFontSizeStep">setLogicalFontSizeStep</a>().</p>
<!-- @@@logicalFontSizeStep -->
<!-- $$$margin[overload1]$$$marginMargin -->
<h3 class="fn"><a name="margin"></a><span class="type">int</span> Q3StyleSheetItem::<span class="name">margin</span> ( <span class="type"><a href="q3stylesheetitem.html#Margin-enum">Margin</a></span> <i>m</i> ) const</h3>
<p>Returns the width of margin <i>m</i> in pixels.</p>
<p>The margin, <i>m</i>, can be <a href="q3stylesheetitem.html#Margin-enum">MarginLeft</a>, <a href="q3stylesheetitem.html#Margin-enum">MarginRight</a>, <a href="q3stylesheetitem.html#Margin-enum">MarginTop</a>, <a href="q3stylesheetitem.html#Margin-enum">MarginBottom</a>, or <a href="q3stylesheetitem.html#Margin-enum">MarginFirstLine</a></p>
<p><b>See also </b><a href="q3stylesheetitem.html#setMargin">setMargin</a>() and <a href="q3stylesheetitem.html#Margin-enum">Margin</a>.</p>
<!-- @@@margin -->
<!-- $$$name[overload1]$$$name -->
<h3 class="fn"><a name="name"></a><span class="type"><a href="qstring.html">QString</a></span> Q3StyleSheetItem::<span class="name">name</span> () const</h3>
<p>Returns the name of the style item.</p>
<!-- @@@name -->
<!-- $$$numberOfColumns[overload1]$$$numberOfColumns -->
<h3 class="fn"><a name="numberOfColumns"></a><span class="type">int</span> Q3StyleSheetItem::<span class="name">numberOfColumns</span> () const</h3>
<p>Returns the number of columns for this style.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setNumberOfColumns">setNumberOfColumns</a>(), <a href="q3stylesheetitem.html#displayMode">displayMode</a>(), and <a href="q3stylesheetitem.html#setDisplayMode">setDisplayMode</a>().</p>
<!-- @@@numberOfColumns -->
<!-- $$$selfNesting[overload1]$$$selfNesting -->
<h3 class="fn"><a name="selfNesting"></a><span class="type">bool</span> Q3StyleSheetItem::<span class="name">selfNesting</span> () const</h3>
<p>Returns true if this style has self-nesting enabled; otherwise returns false.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setSelfNesting">setSelfNesting</a>().</p>
<!-- @@@selfNesting -->
<!-- $$$setAlignment[overload1]$$$setAlignmentint -->
<h3 class="fn"><a name="setAlignment"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setAlignment</span> ( <span class="type">int</span> <i>f</i> )</h3>
<p>Sets the alignment to <i>f</i>. This only makes sense for styles with a <a href="q3stylesheetitem.html#DisplayMode-enum">display mode</a> of <a href="q3stylesheetitem.html#DisplayMode-enum">DisplayBlock</a>. Possible values are <a href="qt.html#AlignmentFlag-enum">Qt::AlignAuto</a>, <a href="qt.html#AlignmentFlag-enum">Qt::AlignLeft</a>, <a href="qt.html#AlignmentFlag-enum">Qt::AlignRight</a>, <a href="qt.html#AlignmentFlag-enum">Qt::AlignCenter</a> or <a href="qt.html#AlignmentFlag-enum">Qt::AlignJustify</a>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#alignment">alignment</a>(), <a href="q3stylesheetitem.html#displayMode">displayMode</a>(), and <a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a>.</p>
<!-- @@@setAlignment -->
<!-- $$$setAnchor[overload1]$$$setAnchorbool -->
<h3 class="fn"><a name="setAnchor"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setAnchor</span> ( <span class="type">bool</span> <i>anc</i> )</h3>
<p>If <i>anc</i> 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.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#isAnchor">isAnchor</a>().</p>
<!-- @@@setAnchor -->
<!-- $$$setColor[overload1]$$$setColorconstQColor& -->
<h3 class="fn"><a name="setColor"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setColor</span> ( const <span class="type"><a href="qcolor.html">QColor</a></span> &amp; <i>c</i> )</h3>
<p>Sets the text color of this style to <i>c</i>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#color">color</a>().</p>
<!-- @@@setColor -->
<!-- $$$setContexts[overload1]$$$setContextsconstQString& -->
<h3 class="fn"><a name="setContexts"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setContexts</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>c</i> )</h3>
<p>Sets a space-separated list of names of styles that may contain elements of this style. If <i>c</i> is empty, the style can be nested everywhere.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#contexts">contexts</a>().</p>
<!-- @@@setContexts -->
<!-- $$$setDisplayMode[overload1]$$$setDisplayModeDisplayMode -->
<h3 class="fn"><a name="setDisplayMode"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setDisplayMode</span> ( <span class="type"><a href="q3stylesheetitem.html#DisplayMode-enum">DisplayMode</a></span> <i>m</i> )</h3>
<p>Sets the display mode of the style to <i>m</i>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#displayMode">displayMode</a>().</p>
<!-- @@@setDisplayMode -->
<!-- $$$setFontFamily[overload1]$$$setFontFamilyconstQString& -->
<h3 class="fn"><a name="setFontFamily"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setFontFamily</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>fam</i> )</h3>
<p>Sets the font family setting of the style to <i>fam</i>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#fontFamily">fontFamily</a>(), <a href="qfont.html#family">QFont::family</a>(), and <a href="qfont.html#setFamily">QFont::setFamily</a>().</p>
<!-- @@@setFontFamily -->
<!-- $$$setFontItalic[overload1]$$$setFontItalicbool -->
<h3 class="fn"><a name="setFontItalic"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setFontItalic</span> ( <span class="type">bool</span> <i>italic</i> )</h3>
<p>If <i>italic</i> is true sets italic for the style; otherwise sets upright.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#fontItalic">fontItalic</a>() and <a href="q3stylesheetitem.html#definesFontItalic">definesFontItalic</a>().</p>
<!-- @@@setFontItalic -->
<!-- $$$setFontSize[overload1]$$$setFontSizeint -->
<h3 class="fn"><a name="setFontSize"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setFontSize</span> ( <span class="type">int</span> <i>s</i> )</h3>
<p>Sets the font size setting of the style to <i>s</i> points.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#fontSize">fontSize</a>(), <a href="qfont.html#pointSize">QFont::pointSize</a>(), and <a href="qfont.html#setPointSize">QFont::setPointSize</a>().</p>
<!-- @@@setFontSize -->
<!-- $$$setFontStrikeOut[overload1]$$$setFontStrikeOutbool -->
<h3 class="fn"><a name="setFontStrikeOut"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setFontStrikeOut</span> ( <span class="type">bool</span> <i>strikeOut</i> )</h3>
<p>If <i>strikeOut</i> is true, sets strike out for the style; otherwise sets no strike out.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#fontStrikeOut">fontStrikeOut</a>() and <a href="q3stylesheetitem.html#definesFontStrikeOut">definesFontStrikeOut</a>().</p>
<!-- @@@setFontStrikeOut -->
<!-- $$$setFontUnderline[overload1]$$$setFontUnderlinebool -->
<h3 class="fn"><a name="setFontUnderline"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setFontUnderline</span> ( <span class="type">bool</span> <i>underline</i> )</h3>
<p>If <i>underline</i> is true, sets underline for the style; otherwise sets no underline.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#fontUnderline">fontUnderline</a>() and <a href="q3stylesheetitem.html#definesFontUnderline">definesFontUnderline</a>().</p>
<!-- @@@setFontUnderline -->
<!-- $$$setFontWeight[overload1]$$$setFontWeightint -->
<h3 class="fn"><a name="setFontWeight"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setFontWeight</span> ( <span class="type">int</span> <i>w</i> )</h3>
<p>Sets the font weight setting of the style to <i>w</i>. Valid values are those defined by <a href="qfont.html#Weight-enum">QFont::Weight</a>.</p>
<p><b>See also </b><a href="qfont.html">QFont</a> and <a href="q3stylesheetitem.html#fontWeight">fontWeight</a>().</p>
<!-- @@@setFontWeight -->
<!-- $$$setListStyle[overload1]$$$setListStyleListStyle -->
<h3 class="fn"><a name="setListStyle"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setListStyle</span> ( <span class="type"><a href="q3stylesheetitem.html#ListStyle-enum">ListStyle</a></span> <i>s</i> )</h3>
<p>Sets the list style of the style to <i>s</i>.</p>
<p>This is used by nested elements that have a display mode of <tt>DisplayListItem</tt>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#listStyle">listStyle</a>(), <a href="q3stylesheetitem.html#DisplayMode-enum">DisplayMode</a>, and <a href="q3stylesheetitem.html#ListStyle-enum">ListStyle</a>.</p>
<!-- @@@setListStyle -->
<!-- $$$setLogicalFontSize[overload1]$$$setLogicalFontSizeint -->
<h3 class="fn"><a name="setLogicalFontSize"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setLogicalFontSize</span> ( <span class="type">int</span> <i>s</i> )</h3>
<p>Sets the logical font size setting of the style to <i>s</i>. Valid logical sizes are 1 to 7.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#logicalFontSize">logicalFontSize</a>(), <a href="qfont.html#pointSize">QFont::pointSize</a>(), and <a href="qfont.html#setPointSize">QFont::setPointSize</a>().</p>
<!-- @@@setLogicalFontSize -->
<!-- $$$setLogicalFontSizeStep[overload1]$$$setLogicalFontSizeStepint -->
<h3 class="fn"><a name="setLogicalFontSizeStep"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setLogicalFontSizeStep</span> ( <span class="type">int</span> <i>s</i> )</h3>
<p>Sets the logical font size step of this style to <i>s</i>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#logicalFontSizeStep">logicalFontSizeStep</a>().</p>
<!-- @@@setLogicalFontSizeStep -->
<!-- $$$setMargin[overload1]$$$setMarginMarginint -->
<h3 class="fn"><a name="setMargin"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setMargin</span> ( <span class="type"><a href="q3stylesheetitem.html#Margin-enum">Margin</a></span> <i>m</i>, <span class="type">int</span> <i>v</i> )</h3>
<p>Sets the width of margin <i>m</i> to <i>v</i> pixels.</p>
<p>The margin, <i>m</i>, can be <tt>MarginLeft</tt>, <tt>MarginRight</tt>, <tt>MarginTop</tt>, <tt>MarginBottom</tt>, <a href="q3stylesheetitem.html#Margin-enum">MarginFirstLine</a>, <tt>MarginAll</tt>, <tt>MarginVertical</tt> or <tt>MarginHorizontal</tt>. The value <i>v</i> must be &gt;= 0.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#margin">margin</a>().</p>
<!-- @@@setMargin -->
<!-- $$$setNumberOfColumns[overload1]$$$setNumberOfColumnsint -->
<h3 class="fn"><a name="setNumberOfColumns"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setNumberOfColumns</span> ( <span class="type">int</span> <i>ncols</i> )</h3>
<p>Sets the number of columns for this style to <i>ncols</i>. Elements in the style are divided into columns.</p>
<p>This makes sense only if the style uses a block display mode (see <a href="q3stylesheetitem.html#DisplayMode-enum">Q3StyleSheetItem::DisplayMode</a>).</p>
<p><b>See also </b><a href="q3stylesheetitem.html#numberOfColumns">numberOfColumns</a>().</p>
<!-- @@@setNumberOfColumns -->
<!-- $$$setSelfNesting[overload1]$$$setSelfNestingbool -->
<h3 class="fn"><a name="setSelfNesting"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setSelfNesting</span> ( <span class="type">bool</span> <i>nesting</i> )</h3>
<p>Sets the self-nesting property for this style to <i>nesting</i>.</p>
<p>In order to support &quot;dirty&quot; HTML, paragraphs <tt>&lt;p&gt;</tt> and list items <tt>&lt;li&gt;</tt> are not self-nesting. This means that starting a new paragraph or list item automatically closes the previous one.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#selfNesting">selfNesting</a>().</p>
<!-- @@@setSelfNesting -->
<!-- $$$setVerticalAlignment[overload1]$$$setVerticalAlignmentVerticalAlignment -->
<h3 class="fn"><a name="setVerticalAlignment"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setVerticalAlignment</span> ( <span class="type"><a href="q3stylesheetitem.html#VerticalAlignment-enum">VerticalAlignment</a></span> <i>valign</i> )</h3>
<p>Sets the vertical alignment to <i>valign</i>. Possible values are <a href="q3stylesheetitem.html#VerticalAlignment-enum">VAlignBaseline</a>, <a href="q3stylesheetitem.html#VerticalAlignment-enum">VAlignSub</a> or <a href="q3stylesheetitem.html#VerticalAlignment-enum">VAlignSuper</a>.</p>
<p>The vertical alignment property is not inherited.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#verticalAlignment">verticalAlignment</a>().</p>
<!-- @@@setVerticalAlignment -->
<!-- $$$setWhiteSpaceMode[overload1]$$$setWhiteSpaceModeWhiteSpaceMode -->
<h3 class="fn"><a name="setWhiteSpaceMode"></a><span class="type">void</span> Q3StyleSheetItem::<span class="name">setWhiteSpaceMode</span> ( <span class="type"><a href="q3stylesheetitem.html#WhiteSpaceMode-enum">WhiteSpaceMode</a></span> <i>m</i> )</h3>
<p>Sets the whitespace mode to <i>m</i>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#whiteSpaceMode">whiteSpaceMode</a>() and <a href="q3stylesheetitem.html#WhiteSpaceMode-enum">WhiteSpaceMode</a>.</p>
<!-- @@@setWhiteSpaceMode -->
<!-- $$$styleSheet[overload1]$$$styleSheet -->
<h3 class="fn"><a name="styleSheet"></a><span class="type"><a href="q3stylesheet.html">Q3StyleSheet</a></span> * Q3StyleSheetItem::<span class="name">styleSheet</span> ()</h3>
<p>Returns the style sheet this item is in.</p>
<!-- @@@styleSheet -->
<!-- $$$styleSheet$$$styleSheet -->
<h3 class="fn"><a name="styleSheet-2"></a>const <span class="type"><a href="q3stylesheet.html">Q3StyleSheet</a></span> * Q3StyleSheetItem::<span class="name">styleSheet</span> () const</h3>
<p>This is an overloaded function.</p>
<p>Returns the style sheet this item is in.</p>
<!-- @@@styleSheet -->
<!-- $$$verticalAlignment[overload1]$$$verticalAlignment -->
<h3 class="fn"><a name="verticalAlignment"></a><span class="type"><a href="q3stylesheetitem.html#VerticalAlignment-enum">VerticalAlignment</a></span> Q3StyleSheetItem::<span class="name">verticalAlignment</span> () const</h3>
<p>Returns the vertical alignment of the style. Possible values are <a href="q3stylesheetitem.html#VerticalAlignment-enum">VAlignBaseline</a>, <a href="q3stylesheetitem.html#VerticalAlignment-enum">VAlignSub</a> or <a href="q3stylesheetitem.html#VerticalAlignment-enum">VAlignSuper</a>.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setVerticalAlignment">setVerticalAlignment</a>().</p>
<!-- @@@verticalAlignment -->
<!-- $$$whiteSpaceMode[overload1]$$$whiteSpaceMode -->
<h3 class="fn"><a name="whiteSpaceMode"></a><span class="type"><a href="q3stylesheetitem.html#WhiteSpaceMode-enum">WhiteSpaceMode</a></span> Q3StyleSheetItem::<span class="name">whiteSpaceMode</span> () const</h3>
<p>Returns the whitespace mode.</p>
<p><b>See also </b><a href="q3stylesheetitem.html#setWhiteSpaceMode">setWhiteSpaceMode</a>() and <a href="q3stylesheetitem.html#WhiteSpaceMode-enum">WhiteSpaceMode</a>.</p>
<!-- @@@whiteSpaceMode -->
<!-- $$$operator=[overload1]$$$operator=constQ3StyleSheetItem& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">Q3StyleSheetItem</span> &amp; Q3StyleSheetItem::<span class="name">operator=</span> ( const <span class="type">Q3StyleSheetItem</span> &amp; <i>other</i> )</h3>
<p>Assignment. Assings a copy of <i>other</i> that is not bound to any style sheet. Unbounds first from previous style sheet.</p>
<!-- @@@operator= -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>