Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 3770

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qcdestyle.cpp -->
<head>
  <title>Qt 4.6: QCDEStyle Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QCDEStyle"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QCDEStyle Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
</h1>
<p>The QCDEStyle class provides a CDE look and feel. <a href="#details">More...</a></p>
<pre> #include &lt;QCDEStyle&gt;</pre><p>Inherits <a href="qmotifstyle.html">QMotifStyle</a>.</p>
<ul>
<li><a href="qcdestyle-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qcdestyle.html#QCDEStyle">QCDEStyle</a></b> ( bool <i>useHighlightCols</i> = false )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><b><a href="qcdestyle.html#dtor.QCDEStyle">~QCDEStyle</a></b> ()</td></tr>
</table>
<hr />
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qcdestyle.html#drawControl">drawControl</a></b> ( ControlElement <i>element</i>, const QStyleOption * <i>opt</i>, QPainter * <i>p</i>, const QWidget * <i>widget</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qcdestyle.html#drawPrimitive">drawPrimitive</a></b> ( PrimitiveElement <i>pe</i>, const QStyleOption * <i>opt</i>, QPainter * <i>p</i>, const QWidget * <i>widget</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><b><a href="qcdestyle.html#pixelMetric">pixelMetric</a></b> ( PixelMetric <i>metric</i>, const QStyleOption * <i>option</i> = 0, const QWidget * <i>widget</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QPalette </td><td class="memItemRight" valign="bottom"><b><a href="qcdestyle.html#standardPalette">standardPalette</a></b> () const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>14 public functions inherited from <a href="qmotifstyle.html#public-functions">QMotifStyle</a></li>
<li><div bar="2" class="fn"></div>16 public functions inherited from <a href="qcommonstyle.html#public-functions">QCommonStyle</a></li>
<li><div bar="2" class="fn"></div>24 public functions inherited from <a href="qstyle.html#public-functions">QStyle</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>6 static public members inherited from <a href="qstyle.html#static-public-members">QStyle</a></li>
<li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>1 protected function inherited from <a href="qmotifstyle.html#protected-functions">QMotifStyle</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>2 protected slots inherited from <a href="qstyle.html#protected-slots">QStyle</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QCDEStyle class provides a CDE look and feel.</p>
<p>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).</p>
<p>Note that most of the functions provided by QCDEStyle are reimplementations of <a href="qstyle.html">QStyle</a> functions; see <a href="qstyle.html">QStyle</a> for their documentation. QCDEStyle provides overloads for <a href="qcdestyle.html#drawControl">drawControl</a>() and <a href="qcdestyle.html#drawPrimitive">drawPrimitive</a>() which are documented here.</p>
<p align="center"><img src="images/qcdestyle.png" /></p><p>See also <a href="qwindowsxpstyle.html">QWindowsXPStyle</a>, <a href="qmacstyle.html">QMacStyle</a>, <a href="qwindowsstyle.html">QWindowsStyle</a>, <a href="qplastiquestyle.html">QPlastiqueStyle</a>, and <a href="qmotifstyle.html">QMotifStyle</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QCDEStyle/QCDEStyle"></a>
<h3 class="fn"><a name="QCDEStyle"></a>QCDEStyle::QCDEStyle ( bool <i>useHighlightCols</i> = false )</h3>
<p>Constructs a <a href="qcdestyle.html">QCDEStyle</a>.</p>
<p>If <i>useHighlightCols</i> is false (the default), then the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.</p>
<a name="//apple_ref/cpp/instm/QCDEStyle/~QCDEStyle"></a>
<h3 class="fn"><a name="dtor.QCDEStyle"></a>QCDEStyle::~QCDEStyle ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Destroys the style.</p>
<a name="//apple_ref/cpp/instm/QCDEStyle/drawControl"></a>
<h3 class="fn"><a name="drawControl"></a>void QCDEStyle::drawControl ( <a href="qstyle.html#ControlElement-enum">ControlElement</a> <i>element</i>, const <a href="qstyleoption.html">QStyleOption</a> * <i>opt</i>, <a href="qpainter.html">QPainter</a> * <i>p</i>, const <a href="qwidget.html">QWidget</a> * <i>widget</i> = 0 ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qstyle.html#drawControl">QStyle::drawControl</a>().</p>
<a name="//apple_ref/cpp/instm/QCDEStyle/drawPrimitive"></a>
<h3 class="fn"><a name="drawPrimitive"></a>void QCDEStyle::drawPrimitive ( <a href="qstyle.html#PrimitiveElement-enum">PrimitiveElement</a> <i>pe</i>, const <a href="qstyleoption.html">QStyleOption</a> * <i>opt</i>, <a href="qpainter.html">QPainter</a> * <i>p</i>, const <a href="qwidget.html">QWidget</a> * <i>widget</i> = 0 ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qstyle.html#drawPrimitive">QStyle::drawPrimitive</a>().</p>
<a name="//apple_ref/cpp/instm/QCDEStyle/pixelMetric"></a>
<h3 class="fn"><a name="pixelMetric"></a>int QCDEStyle::pixelMetric ( <a href="qstyle.html#PixelMetric-enum">PixelMetric</a> <i>metric</i>, const <a href="qstyleoption.html">QStyleOption</a> * <i>option</i> = 0, const <a href="qwidget.html">QWidget</a> * <i>widget</i> = 0 ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qstyle.html#pixelMetric">QStyle::pixelMetric</a>().</p>
<a name="//apple_ref/cpp/instm/QCDEStyle/standardPalette"></a>
<h3 class="fn"><a name="standardPalette"></a><a href="qpalette.html">QPalette</a> QCDEStyle::standardPalette () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qstyle.html#standardPalette">QStyle::standardPalette</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>