Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d2229253b8f3127ab89b179a82cc8466 > files > 521

libqxt-devel-0.6.1-2.fc15.i686.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">
<!-- /builddir/build/BUILD/libqxt/src/gui/qxtlabel.cpp -->
<head>
  <title>QxtLabel Class Reference</title>
  <link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" 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="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">Classes</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">Namespaces</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtLabel Class Reference<br /><span class="small-subtitle">[<a href="qxtgui.html">QxtGui</a> module]</span>
</h1>
<p>The QxtLabel widget is a label which is able to show elided and rotated plain text. <a href="#details">More...</a></p>
<pre>    #include &lt;QxtLabel&gt;</pre><p>Inherits <a href="http://doc.qtsoftware.com/4.5/qframe.html">QFrame</a>.</p>
<ul>
<li><a href="qxtlabel-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h3>Properties</h3>
<ul>
<li><div class="fn"></div><b><a href="qxtlabel.html#alignment-prop">alignment</a></b> : Qt::Alignment</li>
<li><div class="fn"></div><b><a href="qxtlabel.html#elideMode-prop">elideMode</a></b> : Qt::TextElideMode</li>
<li><div class="fn"></div><b><a href="qxtlabel.html#rotation-prop">rotation</a></b> : Qxt::Rotation</li>
<li><div class="fn"></div><b><a href="qxtlabel.html#text-prop">text</a></b> : QString</li>
</ul>
<ul>
<li><div class="fn"></div>6 properties inherited from <a href="http://doc.qtsoftware.com/4.5/qframe.html#properties">QFrame</a></li>
<li><div class="fn"></div>57 properties inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#properties">QWidget</a></li>
<li><div class="fn"></div>1 property inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"></div><b><a href="qxtlabel.html#QxtLabel">QxtLabel</a></b> ( QWidget * <i>parent</i> = 0, Qt::WindowFlags <i>flags</i> = 0 )</li>
<li><div class="fn"></div><b><a href="qxtlabel.html#QxtLabel-2">QxtLabel</a></b> ( const QString &amp; <i>text</i>, QWidget * <i>parent</i> = 0, Qt::WindowFlags <i>flags</i> = 0 )</li>
<li><div class="fn"></div>virtual <b><a href="qxtlabel.html#dtor.QxtLabel">~QxtLabel</a></b> ()</li>
<li><div class="fn"></div>Qt::Alignment <b><a href="qxtlabel.html#alignment-prop">alignment</a></b> () const</li>
<li><div class="fn"></div>Qt::TextElideMode <b><a href="qxtlabel.html#elideMode-prop">elideMode</a></b> () const</li>
<li><div class="fn"></div>Qxt::Rotation <b><a href="qxtlabel.html#rotation-prop">rotation</a></b> () const</li>
<li><div class="fn"></div>void <b><a href="qxtlabel.html#alignment-prop">setAlignment</a></b> ( Qt::Alignment <i>alignment</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtlabel.html#elideMode-prop">setElideMode</a></b> ( Qt::TextElideMode <i>mode</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtlabel.html#rotation-prop">setRotation</a></b> ( Qxt::Rotation <i>rotation</i> )</li>
<li><div class="fn"></div>QString <b><a href="qxtlabel.html#text-prop">text</a></b> () const</li>
</ul>
<ul>
<li><div class="fn"></div>13 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qframe.html#public-functions">QFrame</a></li>
<li><div class="fn"></div>207 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#public-functions">QWidget</a></li>
<li><div class="fn"></div>12 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qpaintdevice.html#public-functions">QPaintDevice</a></li>
<li><div class="fn"></div>29 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h3>Public Slots</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtlabel.html#text-prop">setText</a></b> ( const QString &amp; <i>text</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>19 public slots inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#public-slots">QWidget</a></li>
<li><div class="fn"></div>1 public slot inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h3>Signals</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtlabel.html#clicked">clicked</a></b> ()</li>
<li><div class="fn"></div>void <b><a href="qxtlabel.html#textChanged">textChanged</a></b> ( const QString &amp; <i>text</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#signals">QWidget</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 public type inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#static-public-members">QWidget</a></li>
<li><div class="fn"></div>1 static public member inherited from <a href="http://doc.qtsoftware.com/4.5/qpaintdevice.html#static-public-members">QPaintDevice</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>37 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#protected-functions">QWidget</a></li>
<li><div class="fn"></div>1 protected function inherited from <a href="http://doc.qtsoftware.com/4.5/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>1 protected slot inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#protected-slots">QWidget</a></li>
<li><div class="fn"></div>1 protected type inherited from <a href="http://doc.qtsoftware.com/4.5/qpaintdevice.html#protected-variables">QPaintDevice</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QxtLabel widget is a label which is able to show elided and rotated plain text.</p>
<p>QxtLabel is a label which is able to show elided and rotated plain text. In addition, QxtLabel provides a signal for clicking.</p>
<p align="center"><img src="images/qxtlabel.png" alt="&quot;QxtLabel in action.&quot;" /></p><p>Usage:</p>
<pre>    QxtLabel* label = new QxtLabel(tr(&quot;Hello, World!&quot;), this);
    label-&gt;setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
    label-&gt;setElideMode(Qt::ElideRight);
    label-&gt;setRotation(Qxt::CounterClockwise);
    connect(label, SIGNAL(clicked()), this, SLOT(labelClicked()));</pre>
<p>See also <a href="http://doc.qtsoftware.com/4.5/qlabel.html">QLabel</a>.</p>
<hr />
<h2>Property Documentation</h2>
<h3 class="fn"><a name="alignment-prop"></a>alignment : <a href="http://doc.qtsoftware.com/4.5/qt.html#Alignment-typedef">Qt::Alignment</a></h3>
<p>This property holds the alignment of the text.</p>
<p>The text is aligned according to this property. The default value is <a href="http://doc.qtsoftware.com/4.5/qt.html#AlignmentFlag-enum">Qt::AlignCenter</a>.</p>
<p>Access functions:</p>
<ul>
<li><div class="fn"></div><b>Qt::Alignment alignment () const</b></li>
<li><div class="fn"></div><b>void setAlignment ( Qt::Alignment <i>alignment</i> )</b></li>
</ul>
<p>See also <a href="qxtlabel.html#text-prop">text</a> and <a href="http://doc.qtsoftware.com/4.5/qt.html#Alignment-typedef">Qt::Alignment</a>.</p>
<h3 class="fn"><a name="elideMode-prop"></a>elideMode : <a href="http://doc.qtsoftware.com/4.5/qt.html#TextElideMode-enum">Qt::TextElideMode</a></h3>
<p>This property holds the elide mode of the text.</p>
<p>The text is elided according to this property. The default value is <a href="http://doc.qtsoftware.com/4.5/qt.html#TextElideMode-enum">Qt::ElideMiddle</a>.</p>
<p>Access functions:</p>
<ul>
<li><div class="fn"></div><b>Qt::TextElideMode elideMode () const</b></li>
<li><div class="fn"></div><b>void setElideMode ( Qt::TextElideMode <i>mode</i> )</b></li>
</ul>
<p>See also <a href="qxtlabel.html#text-prop">text</a> and <a href="http://doc.qtsoftware.com/4.5/qt.html#TextElideMode-enum">Qt::TextElideMode</a>.</p>
<h3 class="fn"><a name="rotation-prop"></a>rotation : <a href="qxt.html#Rotation-enum">Qxt::Rotation</a></h3>
<p>This property holds the rotation of the label.</p>
<p>The label is rotated according to this property. The default value is <a href="qxt.html#Rotation-enum">Qxt::NoRotation</a>.</p>
<p>Access functions:</p>
<ul>
<li><div class="fn"></div><b>Qxt::Rotation rotation () const</b></li>
<li><div class="fn"></div><b>void setRotation ( Qxt::Rotation <i>rotation</i> )</b></li>
</ul>
<p>See also <a href="qxt.html#Rotation-enum">Qxt::Rotation</a>.</p>
<h3 class="fn"><a name="text-prop"></a>text : <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a></h3>
<p>This property holds the text of the label.</p>
<p>Access functions:</p>
<ul>
<li><div class="fn"></div><b>QString text () const</b></li>
<li><div class="fn"></div><b>void setText ( const QString &amp; <i>text</i> )</b></li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QxtLabel"></a>QxtLabel::QxtLabel ( <a href="http://doc.qtsoftware.com/4.5/qwidget.html">QWidget</a> * <i>parent</i> = 0, <a href="http://doc.qtsoftware.com/4.5/qt.html#WindowFlags-typedef">Qt::WindowFlags</a> <i>flags</i> = 0 )</h3>
<p>Constructs a new <a href="qxtlabel.html">QxtLabel</a> with <i>parent</i> and <i>flags</i>.</p>
<h3 class="fn"><a name="QxtLabel-2"></a>QxtLabel::QxtLabel ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>text</i>, <a href="http://doc.qtsoftware.com/4.5/qwidget.html">QWidget</a> * <i>parent</i> = 0, <a href="http://doc.qtsoftware.com/4.5/qt.html#WindowFlags-typedef">Qt::WindowFlags</a> <i>flags</i> = 0 )</h3>
<p>Constructs a new <a href="qxtlabel.html">QxtLabel</a> with <i>text</i>, <i>parent</i> and <i>flags</i>.</p>
<h3 class="fn"><a name="dtor.QxtLabel"></a>QxtLabel::~QxtLabel ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Destructs the label.</p>
<h3 class="fn"><a name="clicked"></a>void QxtLabel::clicked ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the label has been clicked.</p>
<p><b>Note:</b> A combination of mouse button press and release in shorter time than <a href="http://doc.qtsoftware.com/4.5/qapplication.html#doubleClickInterval-prop">QApplication::doubleClickInterval</a> is considered as a click.</p>
<p>See also <a href="http://doc.qtsoftware.com/4.5/qapplication.html#doubleClickInterval-prop">QApplication::doubleClickInterval</a>.</p>
<h3 class="fn"><a name="textChanged"></a>void QxtLabel::textChanged ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>text</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the <i>text</i> has changed.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td align="left">Copyright &copy; 2007-2010
<a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td>
<td align="right"><div align="right">
<a href="http://libqxt.org">Qxt</a> 0.6.1</div></td>
</tr></table></div></address></body>
</html>